String message = "WELCOME TO JAVA"; String uncapitalizedMessage = StringUtils.uncapitalize(message); System.out.println(uncapitalizedMessage);
String name = "john"; String uncapitalizedName = StringUtils.uncapitalize(name); System.out.println(uncapitalizedName);Output: "john" In both examples, the StringUtils.uncapitalize() method has been used to convert the first character of a String to lowercase. To use the StringUtils class and its methods, you need to add the Apache Commons Lang library to your project's classpath.