add course registration starter code

This commit is contained in:
2026-04-16 19:37:41 +03:30
parent ef4cbfda4d
commit ecc46eadc1
7 changed files with 338 additions and 0 deletions
@@ -0,0 +1,24 @@
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
}
}