Como pesquisar uma string em outra string? [duplicado
Possible Duplicate:
Como ver se existe uma substring dentro de outra string no Java 1.4
Como eu procuraria uma string em outra string?
Este é um exemplo do que estou falando:
String word = "cat";
String text = "The cat is on the table";
Boolean found;
found = findInString(word, text); //this method is what I want to know
Se a string "word" estiver na string "text", o método "findInString (String, String)" retornará true, caso contrário, retornará false.