Question: Consider the following Class: begin{tabular}{|l|l|} hline multicolumn{1}{|c|}{ Controller } hline Students: a list of Students Courses: a list of Courses Instructors: a list of

Consider the following Class: \begin{tabular}{|l|l|} \hline \multicolumn{1}{|c|}{ Controller } \\ \hline Students: a list of Students Courses: a list of Courses Instructors: a list of Instructors Registrations: a list of Registrations \\ \hline + constructor + getalliDs + getallCodes + addStudent (id,name) + addCourse + addinstructor + registerStudent + printregcourse +printstudentsinCourse \\ \hline & \\ \hline \end{tabular} The method getalliDs must return the students Ids in an arraylist. The following shows the written code of the method with missing part A, B and C. public Arraylist getalliDs 0 Y Arraylist> out = new Arraylist0; for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
