Here you can find the source of waitForSeconds(int timeoutInSeconds)
public static void waitForSeconds(int timeoutInSeconds)
//package com.java2s; //License from project: Apache License public class Main { public static void waitForSeconds(int timeoutInSeconds) { try {//from www.ja v a 2 s .com Thread.sleep(timeoutInSeconds * 1000); } catch (InterruptedException e) { e.printStackTrace(); } } }