Please enable JavaScript to use CodeHS

AP CSA: VAR-2.E.3

CodeHS Lessons

Since the indices for an ArrayList start at 0 and end at the number of elements - 1, accessing an index value outside of this range will result in an ArrayIndexOutOfBoundsException being thrown.

14.3 Traversing ArrayLists
7.3 Traversing ArrayLists
7.6 Arrays vs ArrayLists
5.6 Arrays vs ArrayLists