|
How (in general) could you print out every element of an array with 100 elements? A good answer might be:This sounds like a good place for a counting loop. | |
Counting Loops and ArraysRemember 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:
| |
QUESTION 2:Fill in the blanks so that the program prints out every element, in order. Click Here after you have answered the question |