Write a program that pass arrays to methods.

class ArrayPassing1 {
    static void array(int a[])
    {
        for(int i:a)
        System.out.print(i+"  ");
    }
    public static void main (String args[])
    {
        int b[]={1,5,7,8,9,6,3,2,1,4};
        array(b);
    }
}