Verbesserung des Codes

Andreas
Andreas Wurst 2025-05-22 14:06:27 +02:00
parent cc17733269
commit 4c161e7190
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class Passwort_Check {
public static void main(String[] args) {
String passwort = null;
boolean check = true;
boolean check = false;
Scanner in = new Scanner(System.in);
System.out.println("Geben Sie ein Passwort zur überprüfung ein:");
@ -49,7 +49,7 @@ public class Passwort_Check {
} else {
System.out.println("Passwort ist sicher.");
check = true;
break; // Optional, da Schleife sonst sowieso endet
}
if (check == false) {
System.out.println("Geben Sie ein verbessertes Passwort zur überprüfung ein:");