private int[] myArray; public void fieldAdd(int i, int a){ myArray[i]=a; }