previous
|
start
|
next
Arrays
Arrays can store objects of any type, but their length is fixed
int[] numbers = new int[10];
Array access with
[]
operator:
int n = numbers[i];
Can have array of length 0;
not
the same as
null
:
numbers = new int[0];
previous
|
start
|
next