6.4 Iterating through Arrays
Across
- 2. What type of loop are we using to iterate through arrays?
- 4. The condition of int i must be greater/less than myArray.length?
- 5. Fill in: A for loop will be used for the array myVals, using i to increment. For the nested if statement, what condition satisfies i as a negative number?
- 7. (3 words) A common error in accessing an array is when the index is what?
- 8. An index out of an array's range is what type of error?
Down
- 1. What do we use to iterate through arrays?
- 3. How many iterations of an array if N is 5? (Hint: 0-4)
- 4. (2 words) When iterating an array, int i MUST be ____ ____ the length of an array.
- 6. Fill in: for (i = 0; i < myArray.______; ++i) {