I have two strings like so:
String a = "on matt to";
String b = "onomatopoeia";
I've been trying to do...
if (a.contains(b)) return true;
It returns true in this case since the character sequence "mat" matches the "onomatopoeia".
I want it to return true only and only if the whole word onomatopoeia is in the String a followed or preceded by however many chars.
Can anyone help me?