All pastes #415109 Raw Edit

Anonymous

public text v1 · immutable
#415109 ·published 2007-03-29 15:14 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());
    }
    }  
            
    }