Question: i need to complete question one the code above is example and how it should work public class Player { private String playerName; private int


public class Player { private String playerName; private int highScore; public Player (String name, int score) { playerName = name; highScore = score; /** @param score an int value representing the player's most recent score updates the value of highScore to score if this is higher than the cur rent value */ public void updateScore(int score) { if(score > highScore) highScore = score; /** @return the player's name */ public String getName() { return playerName; } /** @return the high score of the player */ public int getHighScore() { return highScore; } public class Scorelist { private ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
