// // declare an array, myData, that can hold up to 100 integers // import java.util.Scanner; class Array2 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] myData; // declaration myData = new int[100]; // creation // make the 9th as 12? myData[8] = 12; // let the first as 77? myData[0] = 77; // read the 5th one from key? myData[4] = input.nextInt(); // out first 10 elements to the monitor? for(int i=0; i<10; i++) { System.out.print(myData[i] + " "); } System.out.println("\n\nDone.\n\n"); } }