s capitalize first letter of each word code example
Example: 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);
}
}