Question: 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.

How to solve the basic Java program? They ask to write a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!