Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1.  
  2. public class Lesson1FourthMjQuote {
  3.  
  4. public static void main(String[] args) {
  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.length());
  7. char ch=mjQuote.charAt(mjQuote.length()-1);
  8. System.out.println(ch);
  9.  
  10.  
  11. System.out.println(mjQuote.charAt(mjQuote.length()-1));
  12.  
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement