// Make this player implement the Comparable Interface public class Player implements Comparable { protected int loc; protected String name; // Create a player given a name public Player(String name) { this.name = name; this.loc = 1; } // move up by the roll amount public int move (int roll) { this.loc = loc + roll; return this.loc; } public String toString() { return this.name + " is on loc " + this.loc; } // you will need to implement the compareTo interface // - sort by location then name ______________________________________________________ public int compareTo(Player o){ if (this.loc < o.loc) { return -1;} else if (this.loc > o.loc) {return 1;} else // same loc { return this.name.compareTo(o.name);} ______________________________________________________ _______________________________________________________ }