return all capital letter in java code example
Example 1: charat(0).touppercase() java
string s="hello";
s = Character.toUpperCase(s.charAt(0)) + s.substring(1);
The output will be: Hello
Example 2: python capitalize first letter of string without changing the rest
string[0].upper() + string[1:]