diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index 36c81c2..d7cd3bf 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -36,7 +36,7 @@ public class Administration { for(Admin admin : admins ) { if(admin.getId().equals(AdminID)){ - professors.remove(admin); + admins.remove(admin); return true; //Course found and removed } } @@ -44,6 +44,10 @@ public class Administration { return false; } + public void addAdmin(Admin admin) + { + admins.add(admin); + }