26th Aug 2021, 8:25 PM
Muhammed Niyas
Muhammed Niyas - avatar
2 RĂ©ponses
+ 1
(Optional) 1st make players a Map from a HashMap by changing line 4 to; Map<String, Integer> players; Then change your foreach to use it appropriately like; (This is the main issue, Entry cannot be found as it is a sub of Map, and the name map doesn't exist in this scope) for (Map.Entry<String, Integer> entry : players.entrySet()) {...}
26th Aug 2021, 11:16 PM
ChaoticDawg
ChaoticDawg - avatar
0
error: cannot find symbol 13th line
26th Aug 2021, 8:32 PM
Muhammed Niyas
Muhammed Niyas - avatar