<<< | Index | Array of integers >>> |
The syntax for declaring and instantiating an array:
There are two ways to declare an array,
type[] arrayName; type arrayName[];
How to instantiate an array
arrayName = new type[length];
How to declare and instantiate an array in one statement
type[] arrayName = new type[length];
<<< | Index | Array of integers >>> |