Browse Source

Added findAdminbyId Method to Administration class

remotes/origin/fdai7780
fdai7887 11 months ago
parent
commit
efd3b33998
  1. 13
      src/main/java/org/example/Administration.java

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

@ -67,6 +67,19 @@ public class Administration {
return null; return null;
} }
public Admin findAdminById(String adminId)
{
for(Admin admin :admins)
{
if(admin.getId().equals(adminId))
{
return admin;
}
}
return null;
}
/** /**
* *
* @param adminID the id of the admin you want to be deleted from the system * @param adminID the id of the admin you want to be deleted from the system

Loading…
Cancel
Save