public BallSimulation() { random = new Random(); for (int i = 0; i < numberOfBalls; i++) { balls[i] = new Ball(random); } }
public BallSimulation() { ball = new Ball(); }