Hallo!
Ich habe eine Variable x.
Diese Varible erhaelt den Inhalt eines Textfeldes. Da es sich ja auch um Buchstaben handeln kann, benutze ich try und catch. Innerhalb
des Blockes ist jetzt aber x unbekannt.
int x;
try {
x = Integer.parseInt ( textfield.getText() );
} catch (Exception err) { FEHLERWARNUNG!!!! }
Folge Fehlermeldung kommt:
ariable x may not have been initialized.
Was ist falsch???