17. Data Structures

Much that I bound, I could not free;

Much that I freed returned to me.

Lee Wilson Dodd

‘Will you walk a little faster?’ said a whiting to a snail,

‘There’s a porpoise close behind us, and he’s treading on my tail.’

Lewis Carroll

There is always room at the top.

Daniel Webster

Push on—keep moving.

Thomas Morton

I’ll turn over a new leaf.

Miguel de Cervantes

Objectives

In this chapter you will learn:

  • To form linked data structures using references, self-referential classes and recursion.

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

  • To use autoboxing to convert a primitive ...

Get Java™ How to Program, Seventh 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.