Java Arrays

Explains how to declare and use arrays in a Java program.

Prerequisites

Objectives

When to Use an Array

Declaring an Array

Creating an Array

Initializing the Values in an Array

Array Length

Array Indexes

Arrays and the For Loop

Multidimensional Arrays

Library Functions

Further Reading

Front cover of Advanced Programming Techniques

You can learn much more about arrays from chapter 1 of Advanced Programming Techniques.