CAPITALIZE
Examples:
String firstChar = s.substring(0,1); String restChars = s.substring(1); String result = firstChar.toUpperCase()+restChars;
Can be refactored as:
String result = StringUtils.capitalize(s);
library: Apache commons-lang
JavaDoc
Download
See also: UNCAPITALIZE