for ( int index= egArray.length-1 ; index >= 0 ; index-- )
You probably forgot the -1. Off-by-one errors of this kind are very common. It was an easy bet.
Here is a program that prompts the user for each element of an array and reads it in. The array is hard coded to be five elements long. After it is filled with data, the array is written to the monitor.
Usually a program would do something with the data after it was read in. This would usually involve more loops.
Fill in the blanks so that the program works as described. You may wish to copy and paste some of the following phrases. (Hint: you will need to use most phrases twice.)
int index index < = 0 index++ array.length