6.4 Iterating through Arrays

12345678
Across
  1. 2. What type of loop are we using to iterate through arrays?
  2. 4. The condition of int i must be greater/less than myArray.length?
  3. 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?
  4. 7. (3 words) A common error in accessing an array is when the index is what?
  5. 8. An index out of an array's range is what type of error?
Down
  1. 1. What do we use to iterate through arrays?
  2. 3. How many iterations of an array if N is 5? (Hint: 0-4)
  3. 4. (2 words) When iterating an array, int i MUST be ____ ____ the length of an array.
  4. 6. Fill in: for (i = 0; i < myArray.______; ++i) {