1 package test1; 2 3 public class ArrayAccess { 4 int[] ia; 5 int[][] iaa; 6 ArrayAccess()7 public ArrayAccess() { 8 ia = new int[3]; 9 iaa = new int[2][]; 10 ia[0] = 3; 11 iaa[0] = ia; 12 } 13 test()14 public int test() { 15 return ia[0] + iaa[1][0]; 16 } 17 } 18