«
^
»
5.1 Using an ArrayList
Java has a number of Collection classes.
One of these is
ArrayList
.
It allows you to represent an
array
whose size grows as you add more objects to it.
There are a few classes similar to
ArrayList
, all of which satisfy the
List
interface.