0

I'm beginner in Java code. I can't access correct answer. please help my codings.project 6

public void getWinner (){ int maxValue=(Collections .max(players .values())); for(map.Entry<String,Integer> entry:players.entryset()){ if(entry.getValue()==maxValue){ System .out .println (entry.getkey()); } } } }

8th Jan 2022, 12:06 PM
S.kajiththa
1 Odpowiedź
0
Write what and how you can, save on SL Playground and provide the link here. Hint: more information which will be helpful you can find here: https://www.w3schools.com/java/java_hashmap.asp
8th Jan 2022, 12:49 PM
JaScript
JaScript - avatar