Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 7.2 ArrayList Methods

Description

In this lesson, students will learn and use methods that allow the state of ArrayLists to be altered. These methods are as follows:

  • boolean add(E obj)
  • void add(int index, E obj)
  • E get(int index)
  • int size()
  • E set(int index, E obj)
  • E remove(int index)

This lesson corresponds with AP Computer Science A topic 7.2.


Objective

Students will be able to:

  • Use methods associated with ArrayLists