I have a String array containing n number of elements desired by user.
Suppose if there are 3 String elements:
Hey, Hello there, Hell no
And I want to search for the word
The program should give out the third sentence only not the second sentence since
hello has the word
hell in it.
Another example - elements are:
10 50 110
If I search for 10 the output should be the first sentence and not third one (Since 110 contains 10).
I have created a linear search array for String but I don't get how to implement it on words in sentences.
Help would be appreciated.Thank you.