Here you can find the source of pause(int millis)
static void pause(int millis)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { /**//from w w w .ja v a 2 s . c o m * sleeps for millis milliseconds, approximately. */ static void pause(int millis) { try { Thread.sleep(millis); // sleep a bit before trying again. } catch (InterruptedException ie) { } } }