Question: Write the inputParticipants ( ) method in the Clinic class. Within inputParticipants ( ) , use scnr to read each line number until - 9
Write the inputParticipants method in the Clinic class. Within inputParticipants use scnr to read each line number until is read from input. If the line number is not equal to :
Create a new Participant object.
Use the Participant object's readDetails method to read the participant's age and name from input.
Append the Participant object to ArrayList participantList.
Ex: If the input is:
Pat Guy Meg Ava
then the output is:
Participant age: Name: Pat Participant age: Name: Guy Participant age: Name: Meg Participant age: Name: Ava
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
