Mega Code Archive

 
Categories / Java Tutorial / Thread
 

Pausing the Current Thread

public class Main {   public static void main(String[] argv) throws Exception {     long numMillisecondsToSleep = 5000;      Thread.sleep(numMillisecondsToSleep);   } }