From 3462d828f92108f3fe61f39a63633ff8d2cf5ce6 Mon Sep 17 00:00:00 2001 From: fdai7921 Date: Wed, 7 Feb 2024 15:30:16 +0100 Subject: [PATCH] Adding addCourse method in Administration class --- src/main/java/org/example/Administration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index 27bdc9d..eedd0f4 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -26,6 +26,10 @@ public class Administration { } + public void addCourse(Course course){ + courses.add(course); + } + /** * * @param professorID the id of the professor you want to be deleted from the system