7. Arrays and ArrayLists

Objectives

In this chapter you’ll:

Image Use arrays to store data in and retrieve data from lists and tables of values.

Image Declare arrays, initialize arrays and refer to individual elements of arrays.

Image Iterate through arrays with the enhanced for statement.

Image Pass arrays to methods.

Declare and manipulate multidimensional arrays.

Get Java 9 for Programmers 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.