Question: Please use a Java and Java compiler: Problem: Description: Word Search Inputs: String - A sentence String - The word to search in the sentence

Please use a Java and Java compiler:

Problem:

Description:

Word Search

Inputs:

String - A sentence

String - The word to search in the sentence with wildcard.

Outputs:

Integer - how many times the searched word is in the sentence.

Requirements:

The search must be case-sensitive and it must be whole word. You are required to find whether there is a match in the sentence with the string given.

1st input: "Coders who code don't always eat cod. Exclaimed the coder who codes CODE." example 2nd input: "C*de" Returns 0 "c*d*" returns 1

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!