Java tutorial
//package com.java2s; public class Main { /** * Sleep thread without exception. * * @param millis */ public static void sleep(long millis) { try { Thread.sleep(millis); } catch (Throwable e) { e.printStackTrace(); } } }