how to print first letter capital in java code example
Example 1: java first letter to upper case
StringUtils.capitalize(..)
Example 2: java capitalize first letter of each word
import org.apache.commons.text.WordUtils;
public class WordUtilsCapitalizeFullyExample {
public static void main(String[] args) {
String result1 = WordUtils.capitalizeFully("how to CAPITALIZE first letter words");
System.out.println(result1);
}
}