Traversing an ArrayList means going through each element in the list to access or manipulate its values. There are two ways to traverse an ArrayList: using an enhanced for loop and using a traditional for loop with indexes.
Back to ArrayList
Lesson PreviewLesson 3 of 7 in this unit
7.3 Traversing ArrayLists
Part of ArrayList in AP® Computer Science A. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.
Continue the full lesson in Stellar
Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Computer Science A.