Here you can find the source of sleep(final int timeMs)
public static void sleep(final int timeMs)
//package com.java2s; //License from project: Open Source License public class Main { public static void sleep(final int timeMs) { new Thread() { public void run() { try { sleep(timeMs);// w w w. j a va 2 s. c o m } catch (InterruptedException e) { e.printStackTrace(); } super.run(); } }.start(); } }