public static void main(String[] args){ String cellphone="15585458544"; String pwd = cellphone.substring(cellphone.length() - 6); System.out.println(pwd); }
str.substring
public static void main(String[] args){ String cellphone="15585458544"; String pwd = cellphone.substring(cellphone.length() - 6); System.out.println(pwd); }
str.substring