Here you can find the source of sleep()
public static void sleep()
//package com.java2s; //License from project: Open Source License public class Main { public static void sleep() { try {// w w w.j av a 2 s. c om Thread.sleep(1000 * 5); } catch (Exception e) { /*ignore*/} } }