diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index 53a69b8..0f838dc 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -67,6 +67,19 @@ public class Administration { 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