[Solved] Java password checking, code modification


| is a bitwise or, || is a logical or. You should know the difference.

Work this way though:

if(!Character.isLetter(c) && !Character.isDigit(c))
           return false;

=> If the character is not a letter nor a digit return false

2

solved Java password checking, code modification