10. The ArrayList<E> Class and Lambda Expressions

Image

10.1 The ArrayList<E> Class

A program manipulates data, so organizing and using data efficiently are naturally important in a program. Data structures are ways to organize data. Java uses the term collection to mean a data structure that can maintain a group of objects so that the objects can be manipulated as a single entity or unit. Objects can be stored, retrieved, and manipulated as elements of a collection. The term container is also used in the literature for such data structures. Arrays are an example of one kind of collection. Other examples include lists, sets, queues, and stacks, among ...

Get A Programmer’s Guide to Java® SE 8 Oracle Certified Associate (OCA) 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.