- 1

Can Anyone help??

You are creating a bowling game! The given code declares a Bowling class with its constructor and addPlayer() method. Each player of the game has a name and points, and are stored in the players HashMap. The code in main takes 3 players data as input and adds them to the game. You need to add a getWinner() method to the class, which calculates and outputs the name of the player with the maximum points. Sample Input: Dave 42 Amy 103 Rob 64 Sample Output: Amy

26th Apr 2021, 3:28 PM
Rachita Bhasin
1 ответ
0
Which part do you need help with? Understanding a strategy to get started? The method is pretty clear in the last sentence above the samples.
30th Apr 2021, 5:54 AM
EO4Wellness
EO4Wellness - avatar