// purpose: provide pausing methods import java.util.*; public class Pause { // moment(): pauses for a fifth of a second public static void moment( ) { try { Thread.sleep( 200 ); } catch ( InterruptedException e ) { } } // moment(): pauses for a second public static void second( ) { try { Thread.sleep( 1000 ); } catch ( InterruptedException e ) { } } // untilSignaled(): pauses for input (note: input is thrown away) public static void untilSignaled() { Scanner stdin = new Scanner( System.in ); String s = stdin.nextLine(); } }