去掉字符串中的某个字符

用空字符代替:

String b = "abcabcabc";
b=b.replace("b","");

原文地址:https://www.cnblogs.com/judes/p/5810935.html