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 input = sc.nextLine();
        String c = sc.nextLine();
        String[] res = input.split("");

        for(int i = 0; i < res.length; i ++) {
            if(!res[i].equals(c))
                System.out.print(res[i]);
        }
    }
}

Double click to view unformatted code.


Back to problem 55