|
@ -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); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|