Tokens? If you're using StringTokenizer, don't. Use the .toCharArray() method that hooknc mentioned.
Loop through each character using a FOR loop and determine if it's either a letter that should be changed or a symbol that should stay the same. You can do this by checking the characters' ASCII value.
int ascii = (int)character
if ((ascii > 64) && (ascii < 91))
//the character is between capital A and capital Z
You can use this link to see what number ranges alpha-numeric characters are in.
http://www.lookuptables.com/
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Offline 856 posts
since Mar 2004