Chapter 13. From Fundamental Data Structures to Collections

Data structures organize data items for easy manipulation. You 've already seen examples of data structures in previous chapters: arrays, strings —and even the Character class. This chapter formalizes the notion of data structure and examines a variety of fundamental data structures. Then it explores wrappers, which make possible the treatment of primitive type values as objects. What 's the difference between an array and a linked list? The section on self-referential classes provides an answer to that question. This chapter concludes by studying the Collections API, a powerful and unified framework for manipulating collections of objects.

Fundamental Data Structures

Programs manipulate ...

Get Java™ 2 by Example, 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.