public class Zahl { public static void main(String[] x) { System.out.println("....schlafe...."); try { Thread.sleep(2000); } catch (InterruptedException ie)// CHECKED Exception { System.out.println("....unterbrochen...."); } System.out.println("....erwache...."); try { System.out.println("Ihre Eingabe: "+x[0]); int z = Integer.parseInt(x[0]); System.out.println("Das ist die Zahl nach: "+ (z-1)); System.out.println("und 10 / "+z+" ="+ (10/z)); } catch (NumberFormatException nfe) // UNCHECKED Exception { System.out.println("...ist keine Zahl"); } catch (ArrayIndexOutOfBoundsException aioob) // UNCHECKED Exception { System.out.println("...nix eingegeben!"); } catch (Exception e) { System.out.println("...ganz anderer Fehler:"+ e.getLocalizedMessage() ); } } }