25 lines
607 B
Java
25 lines
607 B
Java
package CourseRegistrationStarter;
|
|
import java.util.ArrayList;
|
|
|
|
public class RegistrationSystem {
|
|
private ArrayList<Course> courses;
|
|
|
|
public RegistrationSystem() {
|
|
courses = new ArrayList<>();
|
|
}
|
|
|
|
public void addCourseToSystem(Course c) {
|
|
// TODO: Add the course to the system
|
|
}
|
|
|
|
public Course findCourseByCode(String code) {
|
|
// TODO: Search for a course by course code
|
|
// Return the matching course if found, otherwise return null
|
|
return null;
|
|
}
|
|
|
|
public void showAllCourses() {
|
|
// TODO: Print all courses in the system
|
|
}
|
|
}
|