August 2005
Intermediate to advanced
928 pages
20h 39m
English
ANDREA: Unhappy the land that has no heroes. GALILEO: No, unhappy the land that needs heroes. | ||
| --Bertolt Brecht, Life of Galileo | ||
The java.util package contains many useful interfaces, classes, and a range of subpackages. The classes and interfaces can be roughly divided into two categories: collections and everything else. This chapter describes the collection types. You will learn about the other general utilities in the next chapter.
Collections (sometimes called containers) are holders that let you store and organize objects in useful ways for efficient access. What will be efficient depends on how you need to use the collection, so collections come in many flavors. Most programming environments provide some ...