Please enable JavaScript to use CodeHS

Chapter 7


7.2 ArrayList Methods

Adding Elements to an ArrayList

Getting Elements in an ArrayList

Setting Elements in an ArrayList

Removing Elements from an ArrayList

Comparing Array and ArrayList Functionality

ArrayLists Differ In Their Ability to Remove or Add Values

ArrayList and Java Primitives

ArrayList Methods

Array vs. ArrayList Methods

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: ArrayList of Odd Numbers