1 public class ArrayTest { 2 public int[] array; 3 4 public ArrayTest(int size) { 5 array = new int[size]; 6 } 7 8 public int get(int index) { 9 return array[index]; 10 } 11 }