Question: Write the inputMembers ( ) method in the Appointments class. Within inputMembers ( ) , use scnr to read each row number until - 1

Write the inputMembers() method in the Appointments class. Within inputMembers(), use scnr to read each row number until -1 is read from input. If the row number is not equal to -1:
Create a new Member object.
Use the Member object's readDetails() method to read the member's group and name from input.
Append the Member object to ArrayList memberList.
Ex: If the input is:
1 A Tia 2 B Lin 3 B Pat 4 A Fay -1
then the output is:
Member group: A, Name: Tia Member group: B, Name: Lin Member group: B, Name: Pat Member group: A, Name: Fay

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 Programming Questions!