Here you can find the source of sleep(int ms)
ms
.
Parameter | Description |
---|---|
ms | the milliseconds to sleep (ignores negative values) |
public static void sleep(int ms)
//package com.java2s; //License from project: Apache License public class Main { /**//from ww w .ja va 2 s . com * Sleep for <code>ms</code>. * * @param ms the milliseconds to sleep (ignores negative values) */ public static void sleep(int ms) { if (ms > 0) { try { Thread.sleep(ms); } catch (InterruptedException e) { } } } }