public class Score {

    private int score;

    public Score(int score) {
        this.score = score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getScore() {
        return score;
    }

    public int compareTo(Score s) {
        if (score > s.getScore())
            return 1;
        else if (score == s.getScore())
            return 0;
        else
            return -1;
    }
}

@@ -37,16 +37,43 @@
 t score;
+%0A    private String player;
 %0A%0A    pu
@@ -84,32 +84,47 @@
  Score(int score
+, String player
 ) %7B%0A        this
@@ -131,32 +131,62 @@
 .score = score;%0A
+        this.player = player;%0A
     %7D%0A%0A    publi
@@ -264,45 +264,187 @@
 lic 
-int getScore() %7B%0A        return score
+void setPlayer(String player) %7B%0A        this.player = player;%0A    %7D%0A%0A    public int getScore() %7B%0A        return score;%0A    %7D%0A%0A    public String getPlayer() %7B%0A        return player
 ;%0A  

Add player name to Score object