Model courses and students:
Student(name, number of enrolled courses) — students exist independently of courses;MeetingTime(day, start hour) — created by the course and never shared;Course(code, capacity, aMeetingTimeit creates in its constructor — composition — and anArrayList<Student>of students passed in — aggregation), withenroll(Student)(refuse when full or already enrolled),cancel()andtoString()→CPS2231 (Tue 10:00) 2/3: Lina Omar.
CourseRoster.main reads course CODE DAY HOUR CAPACITY, enroll NAME CODE and cancel CODE until the end of input (cannot enroll Mei in CPS1231 when refused). It prints the remaining courses and, for each student, Lina takes 1 course(s). A cancelled course disappears, but its students do not.