Question: Write the inputStudents ( ) method in the Appointments class. Within inputStudents ( ) , use scnr to read pairs of inputs, string currName and
Write the inputStudents method in the Appointments class. Within inputStudents use scnr to read pairs of inputs, string currName and integer currAge, until "done" is read from input. Create each Student object with currName and currAge as arguments and append each object to ArrayList studentList.
Ex: If the input is Pat Val Noa Rob done, then the output is:
Student: Pat, Age: Student: Val, Age: Student: Noa, Age: Student: Rob, Age: JAVA
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
