public static String getStarMobile(String mobile) {
if (!TextUtils.isEmpty(mobile)) {
if (mobile.length() >=11)
return mobile.substring(0,3) +"****" + mobile.substring(7, mobile.length());
}else {
return "";
}
return mobile;
}
public static String getStarMobile(String mobile) {
if (!TextUtils.isEmpty(mobile)) {
if (mobile.length() >=11)
return mobile.substring(0,3) +"****" + mobile.substring(7, mobile.length());
}else {
return "";
}
return mobile;
}
本文标题:android手机号中间四位显示*号
本文链接:https://www.haomeiwen.com/subject/yqepdftx.html
网友评论