From 8c005aaf0c72233f4981047598f1b09cd57112af Mon Sep 17 00:00:00 2001 From: uta-1001966434 Date: Mon, 29 Jul 2024 13:48:09 -0500 Subject: [PATCH] Update Leaderboard.java --- src/main/java/uta/cse3310/Leaderboard.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/uta/cse3310/Leaderboard.java b/src/main/java/uta/cse3310/Leaderboard.java index 08eacab..9d14565 100644 --- a/src/main/java/uta/cse3310/Leaderboard.java +++ b/src/main/java/uta/cse3310/Leaderboard.java @@ -59,20 +59,5 @@ public String toString() { return playerName + ": " + score; } } - - // Test the Leaderboard class - public static void main(String[] args) { - Leaderboard lb = new Leaderboard(); - lb.addScore("Alice", 100); - lb.addScore("Bob", 200); - lb.addScore("Charlie", 150); - lb.addScore("Diana", 180); - lb.addScore("Eve", 130); - lb.addScore("Frank", 220); // This should replace the lowest score (Alice) - - List topScores = lb.getTopScores(); - for (PlayerScore ps : topScores) { - System.out.println(ps); - } - } } +