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(); }
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(); }