Skip to content

Instantly share code, notes, and snippets.

@alexejVasko
Created February 14, 2016 11:21
Show Gist options
  • Save alexejVasko/216cc0a335e81d207a06 to your computer and use it in GitHub Desktop.
Save alexejVasko/216cc0a335e81d207a06 to your computer and use it in GitHub Desktop.
package substring;
public class SubstringExtra {
/**
* @param args
*/
public static void main(String[] args) {
String mjQuote = "I've failed over and over and over again" +
" in my life and that is why I succeed!";
System.out.println(mjQuote.substring((mjQuote.length()-8), (mjQuote.length()-1)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment