Java tutorial
//package com.java2s; public class Main { public static void sleep(double second) { try { Thread.sleep((long) (second * 1000)); } catch (InterruptedException e) { e.printStackTrace(); } } }