package work.thirteen;
import java.util.Scanner;
public class GuoLv {
public String filter(String say){
String[] mg = {"玩意儿","妈","傻逼","你是"};
for (String mgc:mg) {
String temp = "*";
if (say.contains(mgc)){
for (int i = 0; i < mgc.length() - 1; i++) {
temp += "*";
}
say = say.replace(mgc,temp);
}
}
return say;
}
public static void main(String[] args) {
//输入
Scanner sc = new Scanner(System.in);
//设置输入类型为string
String sa = sc.next();
//设置敏感词汇
GuoLv gl = new GuoLv();
String s = gl.filter(sa);
System.out.println(s);
}
}
10-18
796
10-13
335