Frequently Asked Java Program 24: Java Program to Capitalize First Character of Each Word in a String Sentence
make selenium easy Make Selenium Easy Convert first character of each word into upper case. Solution: Logic: A sentence is a collection of words generally separated by a white space. We can extract words of given sentence using split method. Now extract first character of first word and check if it is not uppercase already….