This sounds like a good place for a counting loop.
Remember that 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, exactly what counting loops can do. Here is a program that does that, except for a blank or two:
class countArray
{
public static void main ( String[] args )
{
int[] egArray = { 2, 4, 6, 8, 10, 1, 3, 5, 7, 9 };
for ( int index= ___________ ; ________________ ; _____________ )
{
System.out.println( ____________________ );
}
}
}