Here you can find the source of sleep(final long milliseconds)
Parameter | Description |
---|---|
milliseconds | Time to sleep in milliseconds |
public static final void sleep(final long milliseconds)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w . j a v a 2 s .co m*/ * Make thread call it sleep for specified time in milliseconds * * @param milliseconds * Time to sleep in milliseconds */ public static final void sleep(final long milliseconds) { try { Thread.sleep(milliseconds); } catch (final Exception exception) { } } }