Verbesserung des Codes
parent
cc17733269
commit
4c161e7190
|
|
@ -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:");
|
||||
|
|
|
|||
Loading…
Reference in New Issue