Question: When starting the program, the user must enter two sentences . After the program should: remove spaces in each of the lines change case of
When starting the program, the user must enter two sentences. After the program should:
remove spaces in each of the lines
change case of all letters to lower
using the Matcher class to determine the index of the string match
determine if all characters in the second sentence are letters
Example of input: "hEllO woRld" "World" Program result: "5 true"
Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
