import java.io.*; // Get the Input Output libraries import java.net.*; // Get the Java networking libraries public class SleepLoop { public static void main(String a[]) throws IOException { int i; System.out.println("Sleep Looper is now running.\n"); for(i=1;i<10;i++) { try{Thread.sleep(3000);} catch(InterruptedException ex) {} System.out.println("Just woke up " + i + "\n"); } } }