|
I see that you try to instantiate pongBalls[0], but how many of the other PongBalls in the array do you instantiate? You may need to post all of your code, indicate the line where your exception is thrown, and note (using System.out.println) the value of the array's index when the exception is thrown.
|