The index to the Data array needs to change its value after each value is stored in the array. It should start at 0 and be incremented by 1 after each use.
The value of the number entered by...
Type: Posts; User: Norm
The index to the Data array needs to change its value after each value is stored in the array. It should start at 0 and be incremented by 1 after each use.
The value of the number entered by...
After reading the value from the user, use an assignment statement to put the value into a slot in the array:
theArray[theIndex] = theValue;
The value of theIndex will need to be changed to...
Look at using a loop to repeatedly ask the user to enter the next number
Use the Scanner class's methods to read the user's input
If you use an array to save the user's inputs in, be sure to...