Here you can find the source of sleep(long millis)
Parameter | Description |
---|---|
millis | a parameter |
public static void sleep(long millis)
//package com.java2s; //License from project: Apache License public class Main { /**//from www . j a v a 2 s. c o m * Sleep thread without exception. * * @param millis */ public static void sleep(long millis) { try { Thread.sleep(millis); } catch (Throwable e) { e.printStackTrace(); } } }