Pausing try { Thread.sleep(5000); // 5 seconds } catch (InterruptedException e) { }