All pastes #2045453 Raw Edit

Mine

public text v1 · immutable
#2045453 ·published 2011-04-12 13:34 UTC
rendered paste body
Zeichen.java:11: unreported exception java.io.IOException; must be caught or declared to be thrown
			c = System.in.read();
			                  ^
1 error 

//App zur Zeichenaufnahme
public class Zeichen {
        public static void main (String[] args) {
                int c = 0;
                int anzahl = 0;

                System.out.print ("Bitte Zeichnfolge eingeben");
                System.out.println("Und mit der RETURN Taste abschließen");

                do {
                        c = System.in.read();
                        System.out.println ("ASCII Code: " + c + "Zeichen: " + (char) c);
                        anzahl = anzahl + 1;
                }
                while (c != -1);
                System.out.println ("Anzahl: " + anzahl);
        }
}