java array main method – Code Review Stack Exchange

public class Array
    {
       public static void main (String()args)
        {
       
        
        }
        public static int() create (int size) // I have to accept an integer size and creates an array of integers of that size.

        {
        int()a=new int (7);
        for (int i=2;i<a.length;i=i+2)
        {
        a(i)=i;
        }
        return a;
        }
        public static void print(int()a)//display the array by separate space
        {
        for (int i=2; i<a.length;i++)
            {
            System.out.print(a(i));
            }
        
        }
        
        public static boolean found(int()a,int item)//returns true if item is found in the array if not false
        {
        for (int i=2;i<a.length;i++)
        {
            
        
        if(a(i)==item)
        {System.out.println("in the list");
            
        return true;
        
        }
        else
        {System.out.println("not in the list");
         return false;
        }
        
       }
       return false;
     }
    
     public static int() grow(int()a) //adding extra 0 in the biginning
        {
        int()b=new int(a.length+1);
        b(0)=0;
        for (int i=0; i<a.length;i++)
        {
        b(i)=a(i-1);
        }
        return b;
        }
    
    }

In this array, the output should be like this

  • 2,4,6,8,10,12
  • 0 is not on the list
  • 0,2,4,6,8,10,12
    (never mind the – )

but nothing comes up right now. What should I add to the main method? Also is there something I need to change??

1.I have to accept an integer size and creates an array of integers of that size.
2.display the array by separate space
3.returns true if the item is found in the array if not false
4.adding extra 0 in the beginning

The program then uses found to display whether or
not there is a zero in the list. Finally, grow the list and print out the new list.