import java.io.*;
public class Interactions {

    // Print "Press Enter/Return when you're ready to continue."
    // and wait for any line of input from br before returning.
    public static void waitForGo(BufferedReader br) throws IOException {
        System.out.println(
            "Press Enter/Return when you're ready to continue.");
        System.out.flush();
        String s = br.readLine();
    }

   // Return whether first letter of s is c, ignoring case.
   // Assumes s is non-empty.
    public static boolean begins(String s, char c) {
        return (s.toLowerCase().charAt(0) == c) ||
               (s.toUpperCase().charAt(0) == c);
    }

    // Return whether first letter of s is 'y' or 'Y'.
    // Assumes s is non-empty.
    public static boolean isAffirmative(String s) {
        return begins(s, 'y');
    }

}
