Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок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); } }
2 ответов
+ 3
Can you please put Java in the tags above for context clarity? up there where you wrote 'p' ☝
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...