public static void sleep(long millis){
  try {
    Thread.sleep(5000);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
}

public static void sleep ( long millis ) { try { Thread . sleep ( 5000 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } }
causes the currently executing thread to sleep ( temporarily cease execution ) for the specified number of milliseconds .
