Someone
public text v1 · immutablepublic void playerWithHighestPoints()
{
Collection<Player> col = allPlayers.values();
Player playerWithHighestPoints = null;
for(Player temp: col)
{
if(playerWithHighestPoints == null || temp.getPoints() > playerWithHighestPoints.getPoints())
{
playerWithHighestPoints = temp;
}
}
System.out.println(playerWithHighestPoints.toString());
}