convert lowercase to uppercase first character in word java code example
Example 1: how to make a char uppercase in java
char q = Character.toUpperCase('d');
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);
}
}