Beispiel #1
0
  private Contestant determineWinner() {
    List<Entry<Contestant, Integer>> sorted = Announcer.sortedByValues(scoreMap);

    // return the contestant with highes score determined by sorting
    return sorted.get(0).getKey();
  }