posted 21 years ago
Well that would be a complex thing, but it could be done.
Using substring functions, get the first letter into a variable - firstLetter.
Similarly, get the rest of the string into another variable - restOfTheString
Then, use translate to translate the firstLetter to capital.
Concat the firstLetter to the restOfTheString.
Any better approaches....feel free
Regards.
- madhav
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81