Is there a method for String conversion to Title Case?

Raji picture Raji · Jul 6, 2009 · Viewed 120.6k times · Source

Are there any built in methods available to convert a string into Title Case format?

Answer

aberrant80 picture aberrant80 · Jul 6, 2009

Apache Commons StringUtils.capitalize() or Commons Text WordUtils.capitalize()

e.g: WordUtils.capitalize("i am FINE") = "I Am FINE" from WordUtils doc