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 0aa3045 commit c209eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/uta/cse3310/Leaderboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c209eaa

Please sign in to comment.