package lesson_1; public class Frame_34 { public static void main(String[] args) { // String mjQuote="I'm fail over and over and over and over again in my life and that is why I succeed!"; System.out.println(mjQuote.substring(mjQuote.indexOf("succeed"),mjQuote.indexOf("succeed")+"succeed".length())); } }