Skip to content
Snippets Groups Projects
Commit b7750a10 authored by Lin Fan's avatar Lin Fan
Browse files

Update PassBook.java

parent 57e73b38
No related branches found
No related tags found
No related merge requests found
Pipeline #5649 passed
......@@ -94,10 +94,10 @@ public class PassBook
boolean containsNumber = false;
for (int i = 0; i < passphrase.length(); i++) {
if ('a' < passphrase.charAt(i) && passphrase.charAt(i) < 'z') {
if ('a' <= passphrase.charAt(i) && passphrase.charAt(i) <= 'z') {
containsLowerCase = false;
}
else if ('A' <= passphrase.charAt(i) && passphrase.charAt(i) <= 'Z') {
else if ('A' <= passphrase.charAt(i) || passphrase.charAt(i) <= 'Z') {
containsUpperCase = true;
}
else if ('0' <= passphrase.charAt(i) && passphrase.charAt(i) <= '9') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment