Skip to content

Commit

Permalink
trying new method
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttrinh3336 committed Apr 29, 2024
1 parent c31b783 commit d10c883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/uta/cse3310/Leaderboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public int compare(K k1, K k2)
public Leaderboard() {
// Initialize the TreeMap with a custom comparator to sort by score in descending order
LB = new TreeMap<>();

sortedScore = new Map();
}
// Method to add a score to the leaderboard
public void add(String handle, int score) {
Expand Down

0 comments on commit d10c883

Please sign in to comment.