Go to diff to previous submission
import java.io.BufferedReader; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.IOException; import java.io.InputStreamReader; class Bugs { /** * @param args the command line arguments */ while(true){ if(firstLine == null) return; // System.out.println(errorCode + " " + errorCode.length()); int errorCodeLength = errorCode.length(); for (int i = 0; i < lineCount; i++) { line = br.readLine(); if(line.length() >= errorCodeLength){ while(line.contains(errorCode)){ line = line.replaceAll(errorCode, ""); } } } } } }
--- c4.s629.cteam037.bugs.java.0.Bugs.java +++ c4.s725.cteam037.bugs.java.0.Bugs.java @@ -14,5 +14,5 @@ */ public static void main(String[] args) throws IOException { - BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 2000000); while(true){ String firstLine = br.readLine();