package studentDB; /** * The student data base. */ public class StudentDB { private StudentList ugStudents = new StudentListImpl(); private StudentList gradStudents = new StudentListImpl(); private CourseList courses = new CourseListImpl(); // Looks up the given student in the given student list. If // the student isn't in the list, returns null. private Student getStudent (StudentList s, int studentNumber) { for (int i=0; i 5) { System.out.println ("Student " + s + " is enrolled in " + cl.numElements() + " courses"); } } } // Rule 3: Courses must have an enrollment of at least 3 students private void checkRule3() { for (int i=0; i