/* CompSci 101 - Keyboard Class ============================ This class is used for input from the keyboard. You do not need to understand the details of this class. To use this class, put it in the same directory as the source file for your program, and include the statement: String input = Keyboard.readInput(); in your program. This will assign whatever is typed at the keyboard to the input variable. */ import java.io.*; public class Keyboard { private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); public static String readInput() { try { return in.readLine(); } catch (IOException e) { System.out.println("An error has occurred in the Keyboard.readInput() method"); System.out.println(e.toString()); System.exit(-1); } return null; } }