Without further ado, just upload the code
//The first letter to lowercase public static String toLowerCaseFirstOne(String s){ if(Character.isLowerCase(s.charAt(0))) return s; else return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1)).toString(); } //The first letter to uppercase public static String toUpperCaseFirstOne(String s){ if(Character.isUpperCase(s.charAt(0))) return s; else return (new StringBuilder()).append(Character.toUpperCase(s.charAt(0))).append(s.substring(1)).toString(); }The above is all about converting the first letter of a string into case using Java. The code is simple but practical. I hope it will be helpful for everyone to learn to use Java.