//Here’s a simple program, that creates the array, puts some values in it, and display the values.
public class Demo {
public static void main(String [ ] args)
{
int [ ] a; // declare an array of integers
a = new int[10]; // create an array of integers
a [ ] = {5, 11, 32, 65} // assign a value to each array element and print
for (int i = 0; i < a.length; i++)
{
System.out.print(a[i] + “ “);
}
System.out.println();
}
}