Here you can find the source of sleep(double secs)
public static void sleep(double secs)
//package com.java2s; //License from project: Open Source License public class Main { public static void sleep(double secs) { try {/*from w w w .j a v a 2 s . c o m*/ Thread.sleep((long) (1000 * secs)); //1000 milliseconds is one second. } catch (InterruptedException ex) { System.out.print("something is wrong exception 1"); Thread.currentThread().interrupt(); } } }