//使用截取隐藏手机号中间部分
public class demo1 {
public static void main(String[] args) {
String phone = "18153468453";
String start = phone.substring(0,4);
String end = phone.substring(7);
String newPhone = start + "****" + end;
System.out.println(newPhone);
}
}