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


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 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.