public class Sleeper {
public static void main(String[] args) {
long sleepLength = 10000;
System.out.println(sleepLength + "ミリ秒休みます。");
try{
Thread.sleep(sleepLength); //sleepLengthミリ秒sleep
}catch(InterruptedException e){
e.printStackTrace();
}
System.out.println("おはよう...。");
}
}