diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index ad600be..2be4f6a 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -40,6 +40,15 @@ public class Administration { return false; } + public Course findCourseByID(String courseID){ + for(Course course : courses){ + if(course.getCourseCode().equals(courseID)){ + return course; + } + } + return null; + } + /** * * @param professorID the id of the professor you want to be deleted from the system @@ -86,8 +95,6 @@ public class Administration { } - - /** * * @param adminID the id of the admin you want to be deleted from the system