how to capitalize the first letter in a string java code example
Example: init cap java
String str = "java";
str = str.substring(0, 1).toUpperCase() + str.substring(1);
// str = "Java"
String str = "java";
str = str.substring(0, 1).toUpperCase() + str.substring(1);
// str = "Java"