Java tutorial
//package com.java2s; public class Main { /** * Just sleep * @param ms amount of milliseconds to sleep */ private static void sleep(final long ms) { try { Thread.sleep(ms); } catch (final InterruptedException e) { e.printStackTrace(); } } /** * Just sleep 1 millisecond */ public static void sleep() { sleep(1); } }