bert682
10-21-2009, 01:37 PM
Hey guys,
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.
private static final int BallArraySize = 10;
private Ball [] ballArray = new Ball [BallArraySize];
I thought that the following would work, it is within a for loop;
int current = Array.getInt(ballArray,i);
but it doesn't.
Any ideas?
Thanks
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.
private static final int BallArraySize = 10;
private Ball [] ballArray = new Ball [BallArraySize];
I thought that the following would work, it is within a for loop;
int current = Array.getInt(ballArray,i);
but it doesn't.
Any ideas?
Thanks