public static List<QueryResponseJSON> readResultsFile(File file) throws IOException {
  List<QueryResponseJSON> results=new ArrayList<>();
  try (BufferedReader br=new BufferedReader(new FileReader(file))){
    String line;
    while ((line=br.readLine()) != null) {
      QueryResponseJSON jsonResult=new QueryResponseJSON(line);
      results.add(jsonResult);
    }
  }
   return results;
}

public static List < QueryResponseJSON > readResultsFile ( File file ) throws IOException { List < QueryResponseJSON > results = new ArrayList < > ( ) ; try ( BufferedReader br = new BufferedReader ( new FileReader ( file ) ) ) { String line ; while ( ( line = br . readLine ( ) ) != null ) { QueryResponseJSON jsonResult = new QueryResponseJSON ( line ) ; results . add ( jsonResult ) ; } } return results ; }
converts the result file into an arraylist of queryresponsejson objects
