@@ -0,0 +1,978 @@
+#import java.util.*;%0A%0A// Write your Checker class here%0Aclass Checker implements Comparator%3CPlayer%3E %7B%0A%09@Override%0A%09public int compare(Player p1, Player p2) %7B%0A%09%09if (p1.score != p2.score) %7B%0A%09%09%09return p2.score - p1.score;%0A%09%09%7D else %7B%0A%09%09%09return p1.name.compareTo(p2.name);%0A%09%09%7D%0A%09%7D%0A%7D%0A%0Aclass Player%7B%0A    String name;%0A    int score;%0A    %0A    Player(String name, int score)%7B%0A        this.name = name;%0A        this.score = score;%0A    %7D%0A%7D%0A%0Aclass Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scan = new Scanner(System.in);%0A        int n = scan.nextInt();%0A%0A        Player%5B%5D player = new Player%5Bn%5D;%0A        Checker checker = new Checker();%0A        %0A        for(int i = 0; i %3C n; i++)%7B%0A            player%5Bi%5D = new Player(scan.next(), scan.nextInt());%0A        %7D%0A        scan.close();%0A     %0A        Arrays.sort(player, checker);%0A        for(int i = 0; i %3C player.length; i++)%7B%0A            System.out.printf(%22%25s %25s%5Cn%22, player%5Bi%5D.name, player%5Bi%5D.score);%0A        %7D%0A    %7D%0A%7D%0A

Create Solution.java