Day: December 6, 2018

Frequently Asked Java Program 25: Java Program to Convert a String Sentence in Camel Case

“CamelCase” is a naming convention in which words are joined together without any whitespace in between and each word starts with a capital letter which increase readability. It is mostly used to name variables and methods in programming languages. Example: MakeSeleniumEasy Problem Statement: Input: make selenium easy Output: MakeSeleniumEasy Convert first character of each word […]

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 […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.