SyntaxFix
Write A Post
Hire A Developer
Questions
Coverting the first letter of word capital
input:
hello world
String A = hello; String B = world; System.out.println(A.toUpperCase().charAt(0)+A.substring(1) + " " + B.toUpperCase().charAt(0)+B.substring(1));
Output:
Hello World