Frequently Asked Java Program 24: Java Program to Capitalize First Character of Each Word in a String Sentence

Problem Statement: Input: make selenium easy Output: 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 … Continue reading Frequently Asked Java Program 24: Java Program to Capitalize First Character of Each Word in a String Sentence