Here you can find the source of pause(int millis)
Parameter | Description |
---|---|
millis | Milliseconds to sleep the thread four. |
public static boolean pause(int millis)
//package com.java2s; //License from project: Apache License public class Main { /**//from w ww . j a v a 2 s .com * Puts the the thread to sleep * * @param millis Milliseconds to sleep the thread four. */ public static boolean pause(int millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { e.printStackTrace(); return false; } return true; } }