Advertisement
Guest User

Untitled

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