Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to solve the basic Java program? They ask to write a client class named PlayerApp flow the step below. rt B-Write a client class,
How to solve the basic Java program? They ask to write a client class named PlayerApp flow the step below.
rt B-Write a client class, Player App, to test the following of your Building class in this order. 1. (1 point) Prompt the user to enter a player's name and read user input as name, then promt user to enter the player contract value and read it as contractValue. Hint you need to use a Scanner object and scanner method to read user input 2. (0.5 point) create 2 objects using both constructors; player1 default and player2 (name, contract, "Cubs"). 3. (0.5point) Use the setContractValue to update the player 1 to 200000. 4. (0.5 point) Use the getLastName method to get player2's last name and print the last name on the console. 5. (0.5 point) Use the method formated Union to get all players union as proper name and print the union's name to the console. 6. (0.5 point) Use the toString method to get the player2 information and show player2 information to the console
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started