Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. public class MyClass {
  2.     public static void main(String args[]) {
  3.       String casado = "CASADO/A";
  4.       String res = casado.substring(casado.length()-2, casado.length());
  5.  
  6.       System.out.println(res);
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement