private String getAllProblems() {
   StringBuilder builder = new StringBuilder();
   for (Problem problem : problems) {
     if (builder.length() > 0) {
       builder.append(", ");
     }
     builder.append(problem.getLine());
     builder.append('.');
     builder.append(problem.getCharacter());
     builder.append(':');
     builder.append(problem.getMessage());
   }
   return builder.toString();
 }
 private String getPositionFromProblem(int n) {
   Problem problem = problems.get(n);
   return problem.getLine() + "." + problem.getCharacter();
 }