You could add 32 or subtract 32 from the ascii value depending on whether it's lower or uppercase.... A simpler solution is creating a substring and calling the toUpperCase() method:
String newString = (oldstring.substring(0,1)).toUpperCase();
NOTE: It's not tested so don't be suprised if that doesn't work.
Reputation Points: 113
Solved Threads: 19
Postaholic
Offline 2,108 posts
since Jun 2004