Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static void sleep(int sleep) { try { Thread.sleep(sleep); } catch (InterruptedException e) { e.printStackTrace(); } } public static void sleep(double sleep) { try { Thread.sleep((long) sleep); } catch (InterruptedException e) { e.printStackTrace(); } } }