So right now we have a player class with the following members:
First name
Last name
Number
Position
Bats (Right, Left, or Switch)
Throws(Right, Left or Switch)
We also have both default and overloading constructors for this class. What we need to do now is create a function that will take an input from the user (this will be based on input from either typing or pushing a button on the phone screen) and storing them into temporary variables. This function will be called when the user presses the "Add Player" or "+" and will terminate when the user clicks "Done" from that Add Player screen. Once the done button is pressed, the function will create a Player and add whatever input the user gave into the overloading constructor.
I recommend writing all temporary code in a text editor and saving it into the initialJavaCode file we have in our project. This will allow us to continue to make progress while we get used to using android studios.
So right now we have a player class with the following members:
We also have both default and overloading constructors for this class. What we need to do now is create a function that will take an input from the user (this will be based on input from either typing or pushing a button on the phone screen) and storing them into temporary variables. This function will be called when the user presses the "Add Player" or "+" and will terminate when the user clicks "Done" from that Add Player screen. Once the done button is pressed, the function will create a Player and add whatever input the user gave into the overloading constructor.
I recommend writing all temporary code in a text editor and saving it into the initialJavaCode file we have in our project. This will allow us to continue to make progress while we get used to using android studios.
This job is up for assignment.