diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index eedd0f4..ad600be 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -30,6 +30,16 @@ public class Administration { courses.add(course); } + public boolean deleteCourse(String courseID){ + for(Course course : courses){ + if(course.getCourseCode().equals(courseID)){ + courses.remove(course); + return true; + } + } + return false; + } + /** * * @param professorID the id of the professor you want to be deleted from the system