This sounds like a good place for a counting loop.
In Java, the index of an array starts at 0 and counts up to one less than the number of elements in the array. This is, of course, what counting loops do. Here is a program that does that, except for a blank or two:
The variable egArray
refers to an object
that has been constructed using an initializer list.
Fill in the blanks so that the program prints out every element, in order. You may wish to copy and paste from the following:
0 index++ egArray[index] index < 10
(You can use "copy" and "paste" commands from the "edit" menu of your browser for this, or use control-c and control-v from the keyboard.