Mega Code Archive
0070 One-Dimensional Arrays
A one-dimensional array is a list of similar-typed variables. The general form of a one-dimensional array declaration is:
type var-name[ ];
type declares the array type.
type also determines the data type of each array element.
The following declares an array named days with the type "array of int":
int days[];
days is an array variable.
The value of days is set to null.