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
转载于:https://www.cnblogs.com/sonder/p/9820748.html