Exit
Idea 1 of 2

A row of numbered boxes

An array keeps values in a row. Each box has a position, called its index. The first box is at index 0, the next at 1, and so on. You read a box by writing its index in square brackets.

nums[0] is the first value.
nums[1] is the second value, not the first.
Step through the indices
7
0
2
1
9
2
4
3
5
4
i

i = 0. nums[0] is 7, the first value.

Move 1 of 4