Thread: Random Q&A 2
View Single Post
Old Jan 14th, 2007, 6:47 PM   #101
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 769
Rep Power: 3 Jimbo is on a distinguished road
A: Do you only want the first letter? 'Cause it looks like your method would work, as would input.toUpperCase().charAt(0); I'd imagine, however, that yours would be faster since it only has to change one character to uppercase...

Q: Do we need more old threads resurrected?
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote