public class ListExample3 { public static void main (String[] argv) { // Plain old array: must specify size int[] intList = new int [10]; for (int i=0; i < 10; i++) { intList[i] = i*i; } // Print. for (int i=0; i < 10; i++) { System.out.println ("Element #" + i + " = " + intList[i]); } } }