Created
November 9, 2015 00:50
-
-
Save e-tverdokhleb/566bfb1bbe31760daf56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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