4. Working with Data Structures

A data structure is a mechanism for organizing data used by your program. Whenever you are working with groups of similar data items, it’s a good idea to make use of a data structure. Java contains excellent built-in support for many different types of data structures, including arrays, lists, maps, and sets. Java bundles most of its classes for working with data structures into what is called the Collections Framework. The Collections Framework is a unified architecture for representing and manipulating collections or data structures. The most commonly used data structure classes are the ArrayList and the HashMap, and those classes are being focused on most in the phrases in this chapter.

The term data structures ...

Get Java™ Phrasebook 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.