public class BallUtil { public static Timer fisTimer ; public static void fisStartBall(){ long firstTime = 2000l; long time = 2000l; if(fisTimer==null){ fisTimer = new Timer(); } fisTimer.scheduleAtFixedRate(new TimerTask(){ public void run(){ System…