public static void sleep(long millis){
  try {
    Thread.sleep(millis);
  }
 catch (  InterruptedException e) {
    throw new RuntimeException(e);
  }
}

public static void sleep ( long millis ) { try { Thread . sleep ( millis ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } }
causes the currently executing thread to sleep ( temporarily cease execution ) for the specified number of milliseconds , subject to the precision and accuracy of system timers and schedulers . the thread does not lose ownership of any monitors .
