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

Objectives

In this chapter you’ll:

Image Learn what collections are.

Image Use class Arrays for array manipulations.

Image Learn the type-wrapper classes that enable programs to process primitive data values as objects.

Get Java™ How To Program (Early Objects), Tenth 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.