Arrays
instantiation
- // trickier example: triangular array!Object o[][] = new Object[6][];for(int i=0; i<o.length; i++) { o[i] = new Object[i+1];}// now remember to create the object themselves
use of arrays
- a[2]=3;
- a is of type int[]
- a[2] is of type int