September 2005
Beginner
576 pages
13h 6m
English
Arrays are variables that are grouped together under a common name. The term “array” should be familiar to you, though the meaning might not be so clear—think of a salesman showing off his array of fabulous cleaning products, or a game show with a dazzling array of prizes. Like variables, arrays are created by stating the type of the variable being organized into the array and the name of the array. The difference lies in the addition of the square bracket marks, [ and ].
You can create arrays for any type of information that can be stored as a variable. For example, the following statement creates an array of string variables:
String[] naughtyChild;
Here are two more examples:
int[] reindeerWeight; boolean[] hostileAirTravelNations; ...
Read now
Unlock full access