Go to diff to previous submission
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class Main { /** * @param args the command line arguments */ int j; while(sc.hasNext()){ int i = sc.nextInt(); hledame = sc.next(); for(j=0;j<i;j++){ radek = br.readLine(); while(radek.indexOf(hledame)>-1){ radek = radek.replaceAll(hledame,""); } } } } }