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; } }