Go to diff to previous submission
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bugs; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; /** * * @author student */ public class Bugs { /** * @param args the command line arguments */ List<String> result = new ArrayList<String>(); while (line.length() > 0) { Scanner s = new Scanner(line); int rowCount = s.nextInt(); text = text.substring(1, text.length()); for (int i = 0; i < rowCount; i++) { result.add(tmp); } line = scanner.nextLine(); } } } }
--- c4.s1283.cteam124.bugs.java.0.Bugs.java +++ c4.s1294.cteam124.bugs.java.0.Bugs.java @@ -20,5 +20,5 @@ * @param args the command line arguments */ - public static void main(String[] args) throws IOException { + public static void main(String[] args) throws Exception { List<String> result = new ArrayList<String>();