Browse Source

Added addAdmin Method to Administration Class

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
679616e2b5
  1. 6
      src/main/java/org/example/Administration.java

6
src/main/java/org/example/Administration.java

@ -36,7 +36,7 @@ public class Administration {
for(Admin admin : admins ) for(Admin admin : admins )
{ {
if(admin.getId().equals(AdminID)){ if(admin.getId().equals(AdminID)){
professors.remove(admin);
admins.remove(admin);
return true; //Course found and removed return true; //Course found and removed
} }
} }
@ -44,6 +44,10 @@ public class Administration {
return false; return false;
} }
public void addAdmin(Admin admin)
{
admins.add(admin);
}

Loading…
Cancel
Save