diff options
author | Haidong Ji | 2021-07-05 14:38:04 -0500 |
---|---|---|
committer | Haidong Ji | 2021-07-05 14:38:04 -0500 |
commit | 41efb7277792e9d1502d305cfd706dd514e24663 (patch) | |
tree | df6b7225df83981350f86bc7d48300b4ea3f64dd /src/main/PlayGround.java | |
parent | 3929c18515bc46cae10c0e2d66c0c622591eee96 (diff) |
Diffstat (limited to 'src/main/PlayGround.java')
-rw-r--r-- | src/main/PlayGround.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/PlayGround.java b/src/main/PlayGround.java new file mode 100644 index 0000000..14a4c80 --- /dev/null +++ b/src/main/PlayGround.java @@ -0,0 +1,13 @@ +import java.util.PriorityQueue; +import java.util.HashMap; +public class PlayGround { + static int testPriorityQueue() { + PriorityQueue<Integer> numbers = new PriorityQueue<>(); + numbers.add(7); + numbers.add(5); + numbers.add(8); + numbers.add(3); + return numbers.poll(); + } + +} |