import java.io.*; public class Lesen { public static void main(String[] x) { String eingabe="leer"; try { System.out.println("Bitte was tippen!"); BufferedReader b = new BufferedReader( new InputStreamReader(System.in, "iso8859-1")); eingabe = b.readLine(); throw new IOException("Simulations-Fehler!"); } catch (IOException ioe) { System.err.println("Ein/Ausgabefehler: "+ ioe.getLocalizedMessage()); } System.out.println("Ihre Eingabe war: "+eingabe); } }