Let's say i input "i love you". If you have typed a statement that contains a "love" word then it will do something.
+4
A:
Try:
List<String> keywords = // your words
for (String key : keywords) {
if (yourPhrase.contains(key)) {
// do something
}
}
It should do the job.
Jes
2010-08-19 02:50:09