Here you can find the source of sleepForSeconds(int seconds)
public static void sleepForSeconds(int seconds)
//package com.java2s; //License from project: Apache License import java.util.concurrent.TimeUnit; public class Main { public static void sleepForSeconds(int seconds) { try {/* ww w. j ava2 s.co m*/ Thread.sleep(TimeUnit.SECONDS.toMillis(seconds)); } catch (InterruptedException ignored) { } } }