We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5149d3a commit e8e4c15Copy full SHA for e8e4c15
4.JavaCollections/src/com/javarush/task/task32/task3204/Solution.java
@@ -21,7 +21,9 @@ public static ByteArrayOutputStream getPassword() {
21
22
char[] password = new char[8];
23
String string = "";
24
- while (!string.matches(".*\\d.*") || !string.matches(".*[a-z].*") || !string.matches(".*[A-Z].*")) {
+ while (!string.matches(".*\\d.*") ||
25
+ !string.matches(".*\\p{Ll}.*") ||
26
+ !string.matches(".*\\p{Lu}.*")) {
27
for (int i = 0; i < password.length; i++) {
28
password[i] = template.charAt(new Random().nextInt(template.length()));
29
}
0 commit comments