diff --git a/src/main/java/uta/cse3310/Leaderboard.java b/src/main/java/uta/cse3310/Leaderboard.java index 2df0a04..d781c2c 100644 --- a/src/main/java/uta/cse3310/Leaderboard.java +++ b/src/main/java/uta/cse3310/Leaderboard.java @@ -10,8 +10,8 @@ public class Leaderboard { public Leaderboard() { // Initialize the TreeMap with a custom comparator to sort by score in descending order LB = new TreeMap<>(); - scores = new Arraylist(); - names = new Arraylist(); + scores = new Arraylist<>(); + names = new Arraylist<>(); } // Method to add a score to the leaderboard public void add(String handle, int score) {