Is there a function built into Java that capitalizes the first character of each word in a String, and does not affect the others?
Examples:
jon
If you're only worried about the first letter of the first word being capitalized:
private String capitalize(final String line) { return Character.toUpperCase(line.charAt(0)) + line.substring(1); }