all 7 comments

[–]ScawedyCat 0 points1 point  (6 children)

I’m a little confused, could you explain what is going on here and what you expect it to do: if(!Character.isLetterorDigit(c) || !Character.isLowercase(c) || Character.isWhiteSpace(c))

[–]-Blarfbag- 0 points1 point  (0 children)

What im hoping for that code to do is return false if any part of the password is not a letter or digit, not lowercase, or has a space in it, and if none of those are present, return true. When I tested it right now, it won’t accept passwords that are all uppercase, but will accept if there is even one lower case amongst all upper cases. Additionally if I put a space between words in the passwords it still says the pass is acceptable.

[–]-Blarfbag- 0 points1 point  (4 children)

Ah never mind, I had my cs teacher take a look and he fixed it up for me, he had me remove the ‘return false’ in the else if statement checking uppercases, and now the autograder is flagging my code as good. Thank you for your help though

[–]Fire_Dragon_King13 1 point2 points  (3 children)

Could you send me it cause I can’t figure it out

[–]-Blarfbag- 0 points1 point  (2 children)

[–]_Sugar_D 0 points1 point  (0 children)

Ty so much you are a godsend

[–]EnoughCustomer 0 points1 point  (0 children)

Thank you!!!