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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!