Here you can find the source of pause(long millis)
Parameter | Description |
---|---|
millis | How much time to wait. |
public static void pause(long millis)
//package com.java2s; //License from project: Apache License public class Main { /**//from w ww . j a v a2s . c om * Waits for some time, handling Interrupted Exceptions. * * @param millis How much time to wait. */ public static void pause(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new IllegalStateException("InterrupedException while pausing", e); } } }