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