import java.io.*; class SimpleInput { static String readString() { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); try { return input.readLine(); } catch (IOException exception) { System.out.println("Fehler in der Eingabe."); return ""; } } static double readDouble() { String doubleString = readString(); try { return Double.parseDouble(doubleString); } catch (NumberFormatException exception) { System.out.println("Keine Gleitkommazahl " + "-- R�ckgabewert 0.0"); return 0.0; } } static int readInt() { String intString = readString(); try { return Integer.parseInt(intString); } catch (NumberFormatException exception) { System.out.println("Keine Zahl " + "-- R�ckgabewert 0"); return 0; } } static boolean readBoolean() { String boolString = readString(); if (boolString.equalsIgnoreCase("true") || boolString.equalsIgnoreCase("yes") || boolString.equalsIgnoreCase("y") || boolString.equalsIgnoreCase("wahr") || boolString.equalsIgnoreCase("ja") || boolString.equalsIgnoreCase("j")) return true; else return false; } }