Properly paramterize raw type Map.Entry

This commit is contained in:
2023-10-08 19:52:00 -05:00
parent 4b84ecaf4a
commit e8aaca3656

View File

@@ -21,7 +21,7 @@ class Solution {
// Building the final st
StringBuilder sb = new StringBuilder();
while (!pq.isEmpty()) {
Map.Entry entry = pq.poll();
Map.Entry<Character, Integer> entry = pq.poll();
char v = (char) entry.getKey();
int n = (int) entry.getValue();