Skip to content

Instantly share code, notes, and snippets.

@edinak1
Created October 17, 2015 15:45
Show Gist options
  • Save edinak1/35fb8f06b0fff010b5b0 to your computer and use it in GitHub Desktop.
Save edinak1/35fb8f06b0fff010b5b0 to your computer and use it in GitHub Desktop.
package numbers;
public class Fifth {
public static void main(String[] args) {
String mjQuote="I'm failed over and over and over again in my life that is why I succeed!";
System.out.println( mjQuote.substring( mjQuote.length()-8, mjQuote.length()-1));
//Program works only for string in which "succeed" last!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment