# Introduction to ArrayList: an overview

An ArrayList is a list that grows and shrinks for you, doing the copying and shifting you'd otherwise do by hand with an array.

Apprentice · Java · Updated November 16, 2026

By Gregor Dzierzon

An ArrayList is a class that handles all the tedious tasks that we just discussed. Instead of managing an array directly, the ArrayList provides methods that manage it for you.

## Array vs ArrayList

Using an Array directly is like parking your own car in a crowded parking lot, where **you** have to find an available space and park the car yourself.

![A crowded parking lot: with an array, you find a free space and park the car yourself](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/09/13b44090b8774366a744fffc2340cf0f.jpg)

Using an ArrayList is like using a valet to park your car for you. Your car will still be parked, but you don't have to worry about the details.

![Valet parking attendants: with an ArrayList, you hand over the keys and the list finds the space for you](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/09/857d684dee4343ba94e3244a30149198.jpg)

## Cheat sheets

- [Introduction to ArrayList: Working with ArrayList](https://www.ask-codey.com/cheat-sheets/introduction-to-arraylist-an-overview-cheat-sheet)

Source: https://www.ask-codey.com/lessons/introduction-to-arraylist-an-overview
