Make the first letter of a string uppercase

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
 
G

Guy Noir

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
 
G

George Ter-Saakov

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

George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top