Summary

Section 19.1 Introduction

  • The Java collections framework gives the programmer access to prepackaged data structures as well as to algorithms for manipulating them.

Section 19.2 Collections Overview

  • A collection is an object that can hold references to other objects. The collection interfaces declare the operations that can be performed on each type of collection.

  • The classes and interfaces of the collections framework are in package java.util.

Section 19.3 Class Arrays

  • Class Arrays provides static methods for manipulating arrays, including sort for sorting an array, binarySearch for searching a sorted array, equals for comparing arrays and fill for placing items in an array.

  • Arrays method asList returns a List view of an array, which ...

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.