public static void playerList(List<Player> players) {
    Set<Player> sortedPlayers = new TreeSet<Player>();
    sortedPlayers.addAll(players);

    StringBuilder sb = new StringBuilder();

    for (Player p : sortedPlayers) {
      sb.append(p.getName()).append("<br>");
    }

    ExportUtils.displayHTML(sb.toString(), "Player List");
  }
  public static void exportMatches(
      IATournament tournament, List<IAMatch> matches, int roundNumber) {
    String content = "";

    if (roundNumber == 0) {
      content += "<h3>Top " + (matches.size() * 2) + "</h3>";
    } else {
      content += "<h3>Round " + roundNumber + "</h3>";
    }

    content += appendMatches(tournament, matches);

    ExportUtils.displayHTML(content, "ExportMatch");
  }
  public static void exportTournamentReport(IATournament tournament) {
    String content = "";
    int roundNumber = 1;
    for (IARound r : tournament.getAllRounds()) {
      if (r.isSingleElimination()) {
        content += "<h3>Top " + (r.getMatches().size() * 2) + "</h3>";
      } else {
        content += "<h3>Round " + roundNumber + "</h3>";
      }
      content += appendMatches(tournament, r.getMatches());

      roundNumber++;
    }

    content += "<h3>Rankings</h3>";
    content += appendRankings(tournament);

    ExportUtils.displayHTML(content, "TournamentReport");
  }
  public static void exportTournamentSlips(
      IATournament tournament, List<IAMatch> matches, int roundNumber) {

    String content = "";

    int counter = 1;
    for (IAMatch m : matches) {
      String matchString = "";
      if (m.getPlayer2() != null) {
        matchString +=
            "<table width=100%><tr><td><h4>Round "
                + roundNumber
                + " - Table "
                + counter
                + "</h4></td><td vAlign=bottom align=left><h4>"
                + m.getPlayer1().getName()
                + "</h4></td><td vAlign=bottom align=left><h4>"
                + m.getPlayer2().getName()
                + "</h4></td></tr><tr><td>"
                + "</td><td class=\"smallFont\">"
                + "</br>"
                + "<div style=\"vertical-align: top; height: 100%;\"><input type=\"checkbox\">I wish to drop</input></div>"
                + "</td><td class=\"smallFont\">"
                + "</br>"
                + "<div style=\"vertical-align: top; height: 100%;\"><input type=\"checkbox\">I wish to drop</input></div>"
                + "</td></tr></table>";

        if (counter % 6 == 0) {
          matchString += "<hr class=\"pagebreak\">";
        } else {
          matchString += "<hr>";
        }

        content += matchString;
        counter++;
      }
    }

    ExportUtils.displayHTML(content, "ExportMatchSlips");
  }
  public static void exportRankings(IATournament tournament) {

    String content = appendRankings(tournament);

    ExportUtils.displayHTML(content, "ExportRankings");
  }