Make the first letter of a string uppercase

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

How can I make the first letter of a string to be upper case and all
the others lower case?

Thanks,
Miguel
 
Miguel, use the substring method to grad the first char and do a
toUpper() and use the substring function to grab the rest of the word
and do a toLower()

HTH
-Guy
 
Makes me wonder how do you handle methods that require more than 3 lines of
code.....

George.
 
Back
Top