isEmpty Abfrage entfernt und in validData Methode hinzugefügt
This commit is contained in:
parent
d4a351a4e2
commit
a44c87cf83
@ -21,16 +21,6 @@ public class Login {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
while(password.isEmpty() || phoneNumber.isEmpty())
|
|
||||||
{
|
|
||||||
System.out.println("Login fehlgeschlagen. Eingabe ist leer, versuchen Sie es erneut.");
|
|
||||||
System.out.println("");
|
|
||||||
System.out.print("Telefonnummer: ");
|
|
||||||
phoneNumber = leser.nextLine();
|
|
||||||
System.out.print("Passwort: ");
|
|
||||||
password = leser.nextLine();
|
|
||||||
}
|
|
||||||
|
|
||||||
boolean error = false;
|
boolean error = false;
|
||||||
error = isError(error, phoneNumber);
|
error = isError(error, phoneNumber);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user