如此简单:
String replace =str.substring(
3
,
7
);
String newStr = str.replace(replace ,
"****"
);
String replace =str.substring(
3
,
7
);
String newStr = str.replace(replace ,
"****"
);
转载于:https://www.cnblogs.com/Nigeria/p/10414519.html