JAVA截取后String字符串六位字符

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

str.substring

猜你喜欢

转载自www.cnblogs.com/sonder/p/9820748.html
今日推荐