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 35 Val 25 Noa 65 Rob 85 done, then the output is:
Student: Pat, Age: 35 Student: Val, Age: 25 Student: Noa, Age: 65 Student: Rob, Age: 85 JAVA

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!