public class SleepDemo {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// sleep n sec
System.out.println("1");
try {
Thread.sleep(3000);
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
System.out.println("2");
}
}