simple question. thanks in advance fro your help
im writing a password check program in java now i sorted out that i need at least 6 letters and maximum 15, and at least a letter and a digit but i need to sort out the rule "not to end the password with '99'.
it says it cannot be a series of alphabetical characters ending with '99' so i started with if it is all characters and want to check the last two and wrote this:
if (var == true) //all letters
if (Character.isDigit(S.charAt(S.length()-2)) && Character.isDigit(S.charAt(S.length()-1))) //last two digits
how do i check if the last two digits are 99?
thanks in advance for your help