An ArrayList is a flexible data structure in Java that can change its size. Unlike standard arrays, you don’t need to declare its size ahead of time. This makes ArrayLists perfect for when you’re not sure how many elements you'll need or if the data might change.
Back to ArrayList
Lesson PreviewLesson 1 of 7 in this unit
7.1 Introduction to ArrayList
Part of ArrayList in AP® Computer Science A. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.
In this unit
7 lessons
Continue the full lesson in Stellar
Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Computer Science A.