Java tutorial
//package com.java2s; import java.util.concurrent.TimeUnit; public class Main { public static void sleep(int seconds) { try { TimeUnit.SECONDS.sleep(seconds); } catch (InterruptedException e) { e.printStackTrace(); } } }