Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 5.5 ArrayList Methods

Description

In this lesson, students will learn about ArrayLists and make their own ArrayLists. They will then learn basic methods for ArrayLists to traverse, add, and access the elements in the ArrayList.

While this lesson focuses on ArrayLists, students should be starting to think about how Arrays and ArrayLists are similar and different. This concept is key and will be further explored in the next lesson.


Objective

Students will be able to:

  • Create an ArrayList
  • Add to and access ArrayList elements
  • Traverse an ArrayList
  • Use basic ArrayList methods