Capitalize first letter in a String using StringUtils in Apache Commons Lang



This example shows how to captialize the first letter in a string using the StringUtils class of the Apache Commons Lang library.
The call to the capitalize() method capitalized the first letter only and leave the rest unchanged.

Output from the code above:







Search for more Java info on this site here:
Custom Search


Please type any questions here.