tags:

views:

53

answers:

1

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