Example strings

one thousand only
two hundred
twenty
seven

How do I change the first character of a string in capital letter and not change the case of any of the other letters?

After the change it should be:

One thousand only
Two hundred
Twenty
Seven

Note: I don’t want to use the apache.commons.lang.WordUtils to do this.

25 Answers
25

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *