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 str1=scan.nextLine();
              String str2=scan.nextLine();
          char c=str2.charAt(0);
          for(int i=0;i<str1.length();i++)
          {
            if(str1.charAt(i)!=c)
              System.out.print(str1.charAt(i));
          }
           
            
            }
    }

Double click to view unformatted code.


Back to problem 55