|
A String is really just a wrapper around an array of chars. You can get that array by using toCharArray() on the string. Then you can just run it through your loop and make sure each character is correct.
You could also use the toUpperCase() method to make all the characters uppercase, so your users could type in lower case as well as upper case.
|