Browse Source

Added findStudentById Method to Administration class

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

12
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

Loading…
Cancel
Save