Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class Lesson_1 {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. String mjQuote = "I'm failed over and over and over again in my life and that is why I succeed!";
  6. System.out.println(mjQuote.substring((mjQuote.indexOf("again")), ((mjQuote.indexOf("again")) + "again".length())));
  7.  
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement