Here you can find the source of sleep(int millis)
public static void sleep(int millis)
//package com.java2s; //License from project: Apache License import java.util.concurrent.TimeUnit; public class Main { public static void sleep(int millis) { try {//from w ww. ja v a2 s . c o m TimeUnit.MILLISECONDS.sleep(millis); } catch (InterruptedException e) { // ignore } } }