Java™ for Programmers: Deitel
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
7. Arrays
Objectives
In this chapter you’ll learn:
• To use arrays to store data in and retrieve data from lists and tables of values.
• To declare arrays, initialize arrays and refer to individual elements of arrays.
• To use the enhanced for statement to iterate through arrays.
• To pass arrays to methods.
• To declare and manipulate multidimensional arrays.
• To write methods that use variable-length argument lists.
• To read command-line arguments into a program.
Now go, write it before them in a table, and note it in a book.
—Isaiah 30:8
To go beyond is as wrong as to fall short.
—Confucius
Begin at the beginning, ... and go on till you come to the end: then stop.
—Lewis Carroll
Outline
7.1 Introduction
7.2 Arrays
7.3 Declaring ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access