Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Lesson1FourthMjQuote {
- public static void main(String[] args) {
- String mjQuote = "I'm failed over and over and over again in my life and that is why I succeed!";
- System.out.println(mjQuote.length());
- char ch=mjQuote.charAt(mjQuote.length()-1);
- System.out.println(ch);
- System.out.println(mjQuote.charAt(mjQuote.length()-1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement