Arrays gave you a way to store multiple values. But every array has a fixed size, locked the moment you create it. If you need to add a tenth element to a -element array, you are stuck.
In this section, I'll show you ArrayList, a resizable list that grows and shrinks as needed. You'll learn how to add, remove, search, and sort elements. You'll also see wrapper classes, autoboxing, and the Collections utility class that provides ready-made operations on lists.