Chapter Summary
ArrayListis a class in the Java Class Library. Instances ofArrayListcan be thought of as arrays that can grow in length. You create and name such instances in the same way as any other object except that you specify their base type.ArrayListhas powerful methods that can do many of the things you must do for yourself when using an array.The Java Collections Framework is a collection of interfaces and classes that may be used to manipulate collections of objects in a consistent way.
The
HashSetclass is part of the Java Collections Framework and may be used to efficiently implement a set.The
HashMapclass is part of the Java Collections Framework and may be used to map from one value to another.A linked list is a data structure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access