Word By Word Comparison
<p>I want to ask if anyone knows whether Java has built in library for doing something like the following.</p>

<p>For instance,</p>

<p>I have 2 Strings which are:
String a = "Yeahh, I love Java programming.";
String b = "love";</p>

<p>I want to check whether the String b which contains "love" is part of the tokens in the String a. Hence, I want to ask are there any Java API to do so?
I want something like,</p>

<p>a.contains (b)  &lt;--------- Return true result</p>

<p>Are there any???
because,,,,if there's no Java API for that, I would write my own algorithm then.</p>

<p>Thanks in advance for any helps..^^</p>
