Hi everyone,
I want to ask if anyone knows whether Java has built in library for doing something like the following.
For instance,
I have 2 Strings which are: String a = "Yeahh, I love Java programming."; String b = "love";
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,
a.contains (b) <--------- Return true result
Are there any??? because,,,,if there's no Java API for that, I would write my own algorithm then.
Thanks in advance for any helps..^^