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
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the sentence : "); try { String str = br.readLine(); char[] str1 = new char[str.length()]; for(int i=0; i