View Code of Problem 55


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String str1 = sc.nextLine();
        String str2 = sc.nextLine();
        System.out.println(str1.replace(str2,""));
    }
}

Double click to view unformatted code.


Back to problem 55