Question: (IN JAVA): How do you make something return true if the same word is found within a sentence of that string? For example: GIVEN: -----------------------

(IN JAVA):

How do you make something return true if the same word is found within a sentence of that string?

For example:

GIVEN:

-----------------------

Boolean obj;

String sentence = "The Grand Adventure";

make obj return true IF obj contains a word within the string sentence (NOT case-sensitive). So if obj is equal to "the" then boolean obj would return true, because "the" was found in the string sentence.

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!