Arrays
can have arrays of any type
even arrays of arrays
array is an Object
zero based indexing
definition
int a[]; // array of integers
Object o[][]; // array of array of Objects
instantiation
int a[] = new int[5];
int a[] = {10, 15, 4, 2};
Previous slide
Next slide
Back to first slide
View graphic version