package scores;

public class BestPlayer2 {
	private String playerName;
	private int score;
	
	
	public int compareTo(BestPlayer2 p){
		if (this.score > p.getScore()) {
			return 1;
		}
		else if (this.score == p.getScore()) {
			return 0;
		}
		else {
			return -1;
		}
	}


	public String getPlayer() {
		return playerName;
	}


	public void setPlayer(String player) {
		this.playerName = player;
	}
	
	public int getScore() {
		return this.score;
	}
	
	public void setScore(int score) {
		this.score = score;
	}
}

@@ -60,33 +60,121 @@
 ing 
-playerName;%0D%0A%09private int
+name;%0D%0A%09private int score;%0D%0A%09%0D%0A%09public BestPlayer2(String name, int score) %7B%0D%0A%09%09this.name = name;%0D%0A%09%09this.score =
  sco
@@ -179,16 +179,17 @@
 core;%0D%0A%09
+%7D
 %0D%0A%09%0D%0A%09pu
@@ -396,22 +396,20 @@
 ring get
-Player
+Name
 () %7B%0D%0A%09%09
@@ -415,23 +415,17 @@
 %09return 
-playerN
+n
 ame;%0D%0A%09%7D
@@ -446,22 +446,20 @@
 void set
-Player
+Name
 (String 
@@ -480,15 +480,9 @@
 his.
-playerN
+n
 ame 

Add constructor + getters/setters