Have a small problem in extracting an int value from an array. Im modifying code for a class exercise so im not 100% sure of all the code. Anyway, here is what I have extracted as the code relating to the array.
I thought that the following would work, it is within a for loop;Code:private static final int BallArraySize = 10; private Ball  ballArray = new Ball [BallArraySize];
but it doesn't.Code:int current = Array.getInt(ballArray,i);