Question: In JAVA CODE, please. Given string userStr on one line and character charToFind on a second line, output Match found if the first character of

In JAVA CODE, please.
Given string userStr on one line and character charToFind on a second line, output "Match found" if the first character of userStr matches charToFind. Otherwise, output "Match not found". End with a newline.
Ex: If the input is:
guitar
g
then the output is:
Match found
Note: Assume the length of string userStr is greater than or equal to 1.
 In JAVA CODE, please. Given string userStr on one line and

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!