Here you can find the source of pause(long t)
Parameter | Description |
---|---|
t | a parameter |
public static void pause(long t)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w . j a va 2 s . c om * To Pause the thread * @param t */ public static void pause(long t) { try { Thread.sleep(t); } catch (InterruptedException e) { e.printStackTrace(); } } }