Java ArrayList
I guess you're here because you want to learn how to use the ArrayList in your Java code. You're in the right place!
As explained in the Java documentation, ArrayList is:
- A resizable array: implementing the List interface,
- Mutable: objects can be added and/or removed,
- Not Thread-safe: ArrayList is not suitable for concurrent access. See Thread Safety for more information.
Let's explore how to use an ArrayList through simple code examples!