Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Ball golf;
- // declare other balls here
- public void main(int[] args)
- {
- golf = new Ball("golfball", "white", "hard", 1);
- // do the same for the other balls
- // print to the console the values of each ball
- PrintOutBallValues();
- // take in input from user
- // print the new values of each Ball
- PrintOutBallValues();
- }
- public void PrintOutBallValues()
- {
- // print out each ball's value
- }
- public void GetUserValues()
- {
- // get and set each ball's value from user input
- }
Add Comment
Please, Sign In to add comment