View Code of Problem 55

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {	
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String c = scan.next();
		System.out.println(str.replace(c, ""));
		scan.close();
		}
}

Double click to view unformatted code.


Back to problem 55