From a44c87cf831108845f8e9682e823e1387c8ee397 Mon Sep 17 00:00:00 2001 From: pbg2h21ama Date: Tue, 17 Jan 2023 16:15:58 +0100 Subject: [PATCH] =?UTF-8?q?isEmpty=20Abfrage=20entfernt=20und=20in=20valid?= =?UTF-8?q?Data=20Methode=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Login.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Login.java b/src/Login.java index 4f3c92a..73e0ed9 100644 --- a/src/Login.java +++ b/src/Login.java @@ -21,16 +21,6 @@ public class Login { 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; error = isError(error, phoneNumber);