Java tutorial
//package com.java2s; public class Main { public static void delay(int seconds) { try { // delay 1 second Thread.sleep(seconds * 1000); } catch (InterruptedException e) { e.printStackTrace(); } } }