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