class Util { static void nap () { int d = (int) (Math.random () * 1000); try { Thread.sleep (d); } catch ( Exception e ) { System.out.println ("got exception: " + e); }; } }