Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
An ArrayList is a resizable dynamic data structure in Java that stores elements sequentially. In this case, "<Integer>" specifies that this particular ArrayList can only store Integer objects.
Related terms
LinkedList<String>: Another dynamic data structure similar to ArrayList but with different internal implementation.
HashMap<String, Integer>: A data structure that maps keys to values, allowing fast retrieval based on the key.
Stack<Integer>: A data structure where elements are added and removed based on last-in-first-out (LIFO) order.