Java tutorial
//package com.java2s; public class Main { /** * Sleep for specified duration in milliseconds. * @param millis duration to sleep in milliseconds */ public static void sleep(final long millis) { try { Thread.sleep(millis); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); } } }