Java tutorial
//package com.java2s; public class Main { public static void sleepThread(long time) { try { Thread.sleep(time); } catch (InterruptedException ex) { System.out.println("Error sleeping thread"); ex.printStackTrace(); } } }