Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 7.3 Traversing ArrayLists

Description

In this lesson, students will learn how to traverse ArrayLists. For ArrayLists, instead of using .length and brackets ([]) to access the elements in a list, size() and get() will be used. This lesson corresponds with AP Computer Science A topic 7.3.


Objective

Students will be able to:

  • Traverse ArraysLists using a for or while loop
  • Access elements in an ArrayList using iteration statements
  • Remove elements in an ArrayList