Here you can find the source of pause(long nbMilliseconds)
public static void pause(long nbMilliseconds)
//package com.java2s; public class Main { public static void pause(long nbMilliseconds) { try {//ww w . jav a 2 s . c om System.out.println("Pause for " + nbMilliseconds + "ms."); Thread.sleep(nbMilliseconds); } catch (InterruptedException e) { throw new IllegalStateException(e); } } }