...for (int i = 0; i < (sTemp.length() - s.length()); i++) { if (sTemp.substring(i, i + s.length()).equals(s)) { //gefunden... }}...if (sTemp.indexOf(s) >= 0) // gefunden