Chapter 18. Generic Collections

I think this is the most extraordinary collection of talent, of human knowledge, that has ever been gathered together at the White House—with the possible exception of when Thomas Jefferson dined alone.

John F. Kennedy

Journey over all the universe in a map.

Miguel de Cervantes

Not by age but by capacity is wisdom acquired.

Titus Maccius Plautus

Objectives

In this chapter you’ll learn:

• What collections are.

• To use class Arrays for array manipulations.

• The type-wrapper classes that enable programs to process primitive data values as objects.

• To use the prebuilt generic data structures of the collections framework.

• To use iterators to “walk through” a collection.

• To use persistent hash tables ...

Get Java™ for Programmers: Deitel Developer Series, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.