That what the length() method of string is for, compare that to the minimum length and voila, you have that validity check.
Also, remember you return false if any characters are not right, but not...
Type: Posts; User: Tjstretch
That what the length() method of string is for, compare that to the minimum length and voila, you have that validity check.
Also, remember you return false if any characters are not right, but not...
1: char != Character.. a quick look at the Character API and you would see that the isDigit and isLetterOrDigit would be statically called like Character.isLetterOrDigit(c) or Character.isDigit(c)...