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