diff --git a/src/main/java/org/example/Administration.java b/src/main/java/org/example/Administration.java index 0f838dc..4f157ba 100644 --- a/src/main/java/org/example/Administration.java +++ b/src/main/java/org/example/Administration.java @@ -80,6 +80,18 @@ public class Administration { return null; } + public Student findStudentById(String StudentId) + { + for(Student student :students) + { + if(student.getId().equals(StudentId)) + { + return student; + } + } + + return null; + } /** * * @param adminID the id of the admin you want to be deleted from the system