View Single Post
Old 03-25-2005, 04:02 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
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.
__________________
GitS
Belisarius is offline   Reply With Quote