/*
* string原字符串
* sw 敏感源数组
*/
public static void main(String[] args) {
String string ="你才是草!傻逼!";
String sww ="草,艹,靠,tam,傻逼,你妈";
String [] sw = sww.split(",");
for (int i = 0; i < sw.length; i++) {
string = string.replace(sw[i], "**");
}
System.out.println(string);
}