Powiel możliwe:
How to see if a substring exists inside another string in Java 1.4Jak wyszukiwać ciąg w innym ciągu?
Jak wyszukać ciąg w innym ciągiem?
To jest przykład tego, co mówię:
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
Jeśli napis "słowo" jest w ciąg "tekst", metoda "findInString (String, String)" zwraca true else zwraca false.