Here you can find the source of sleep(int sleepInSeconds)
public static void sleep(int sleepInSeconds)
//package com.java2s; //License from project: Open Source License public class Main { public static void sleep(int sleepInSeconds) { if (sleepInSeconds > 0) { try { // Sleep a little when giving a warning. Thread.sleep(1000 * sleepInSeconds); // TODO allow this to be set in a global variable. } catch (InterruptedException e) { }//from w w w . j av a2 s . c om } } }