Here you can find the source of sleepMilliseconds(long ms)
public static void sleepMilliseconds(long ms)
//package com.java2s; //License from project: Apache License public class Main { public static void sleepMilliseconds(long ms) { try {/*from ww w . j a va2s . co m*/ Thread.sleep(ms); } catch (InterruptedException e) { e.printStackTrace(); } } }