ich steh grad vor dem problem, eine nutzereingabe zu kontrollieren, eigentlich kein problem, dachte ich, trotzdem hat es bis jetzt noch nicht geklappt
problem: ich möchte einen zahlenwert aus einem textfeld in eine variable speichern, punktkorrektion ist auch kein problem mit replace, aber wie kontrolliere ich, wenn jemand buchstaben eingibt?
String anz_str = textField1.getText().replace(',','.'); int anz = (int)(Math.round(Double.valueOf(anz_str))); if (anz == false) ? funzt nicht if (anz == nixdrin) ?
bin für jeden tipp dankbar
gruß
du ciel