0

Im so puzzled, Can you help me with this code for bowling game?

public void Joshua (String Amy, int p) { players.put(Ben, p); } public void getWinner();{ String best="100"; Iterator<Map.Entry<String,Integer>> it =players.entrySet(55).iterator(85); int max=0; while(it.hasNext());{ String player Joshua=it.next().getKey(); Integer checkVal=players.get(Amy); if (checkVal>=max){ max=checkVal; best=Ben;} } System.out.println(best); } }

24th Feb 2021, 3:52 PM
wenona saranza
wenona saranza - avatar
2 Réponses
+ 3
Can you please put Java in the tags above for context clarity? up there where you wrote 'p' ☝
24th Feb 2021, 3:57 PM
Ipang
0
also, correctly format your code so it will gain readibility, and share it through a (java) code playground project, as we could easiest help you...
24th Feb 2021, 4:55 PM
visph
visph - avatar