List of usage examples for org.apache.commons.lang WordUtils capitalizeFully
public static String capitalizeFully(String str)
Converts all the whitespace separated words in a String into capitalized words, that is each word is made up of a titlecase character and then a series of lowercase characters.
From source file:standalone.Main.java
/** * Return the same string with all words capitalized. * @param str the string conatining the words to capitalize * @return null if the string was null, the string with all words capitalized otherwise *///from ww w. j a v a2s. co m public static String capitalizeWords(String str) { System.out.println(" [" + Main.class.getName() + "] capitalizing string \"" + str + "\" using " + WordUtils.class.getName()); return WordUtils.capitalizeFully(str); }
From source file:uk.co.certait.htmlexporter.demo.domain.ProductGroup.java
public String toString() { return WordUtils.capitalizeFully(this.name()); }