Question: Use scnr to read integer lineNumber from input until the next lineNumber read is equal to - 1 . If lineNumber is not equal to
Use scnr to read integer lineNumber from input until the next lineNumber read is equal to If lineNumber is not equal to :
Assign currMember with a new Member object.
Use currMember's readDetails method to read the member's name and age from input.
Append currMember to ArrayList memberList.
Ex: If the input is:
Jen
Tim
Cam
Bob
then the output is:
Member: Jen, Age:
Member: Tim, Age:
Member: Cam, Age:
Member: Bob, Age:
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
