String mSentence = "The quick brown fox jumped over the lazy dog.";
int juIndex = mSentence.indexOf("ju");
System.out.println("position of jumped= "+juIndex);
System.out.println(mSentence.substring(juIndex, juIndex+15));
output : jumped over the
its working code...enjoy:)