Chapter Summary

  • ArrayList is a class in the Java Class Library. Instances of ArrayList can 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.

  • ArrayList has 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 HashSet class is part of the Java Collections Framework and may be used to efficiently implement a set.

  • The HashMap class 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 ...

Get Java: An Introduction to Problem Solving and Programming, 8th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.