![]() You might debug the code with single-step through all commands. Because I think you've got the right ideas, but are missing a bit of Java syntax. I just give the correct code undocumented. Public static boolean isSecurePassword(String password) If the password has all these combinations, then it. 4) The number of special characters in the password. 2) The number of upper case and lower case letters. String password= isSecurePassword("testcase") Strength of the password can be calculated using various parameters like, 1) The total length of the password. Can you help me understand how exactly booleans work, and if it's possible for several conditions to be tested under one boolean, as I'm trying to do below? It's more English than code actually, but what I'm trying to do is run several loops under one boolean (at least that's what I think I'm doing). I just started with java a few weeks ago, and am trying to make a program to verify that a password is at least 10 characters, has at least one each of:upper case, lower case, number, and is only alphanumeric characters.īelow is the code I have so far. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |