double time = 0; double deltaT = 0.05; ballSpeed = 0.1; boolean status = true; while (status) { for (int i = 0; i