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
Get step-by-step solutions from verified subject matter experts
