Skip to content

Instantly share code, notes, and snippets.

@e-tverdokhleb
Created November 9, 2015 00:50
Show Gist options
  • Save e-tverdokhleb/566bfb1bbe31760daf56 to your computer and use it in GitHub Desktop.
Save e-tverdokhleb/566bfb1bbe31760daf56 to your computer and use it in GitHub Desktop.
public class main {
public static void main(String[] args) {
String str1 = "I've falied over and over and over again in my life and that is why I succeed";
System.out.println(str1.substring(str1.indexOf("again"), str1.indexOf("again") + "again".length()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment