Exemplo n.º 1
0
 public static void main(String[] args) {
   File file = new File(new File("").getAbsolutePath() + "\\src\\ch22_11\\in.csv");
   List<String[]> list;
   try {
     list = CSV.readCSVTable(new FileReader(file), 2);
     for (String[] strings : list) {
       for (String str : strings) {
         System.out.print(str + "\t");
       }
       System.out.println();
     }
   } catch (FileNotFoundException e) {
     e.printStackTrace();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
 public static List<String> getRoundCsvLinks(Round round) {
   CSV csv = new CSV(null, round);
   return csv.getRoundCsvLinks();
 }
 public static List<String> getTournamentCsvLinks(Tournament tournament) {
   CSV csv = new CSV(tournament, null);
   return csv.getTournamentCsvLinks();
 }
  public static void createRoundCsv(Round round) {
    CSV csv = new CSV(null, round);

    csv.roundCsv(round);
    csv.gamesCsv(round);
  }
  public static void createTournamentCsv(Tournament tournament) {
    CSV csv = new CSV(tournament, null);

    csv.tournamentCsv(tournament);
    csv.levelsCsv(tournament);
  }