编程题:29
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s1 = scanner.nextLine();
String s2 = scanner.nextLine();
while (s1.contains(s2)) {
s1 = s1.replace(s2, "");
}
System.out.println(s1);
}
}

posted on 2025-05-16 23:55  Swishy  阅读(6)  评论(0)    收藏  举报