All pastes #415101 Raw Edit

Unnamed

public text v1 · immutable
#415101 ·published 2007-03-29 15:10 UTC
rendered paste body
public 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());
    }
    }  
            
    }