Browse Source

Added documentation to Administration class

remotes/origin/fdai7780
fdai7887 11 months ago
parent
commit
52f8cd3516
  1. 22
      src/main/java/org/example/Administration.java

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

@ -97,6 +97,12 @@ public class Administration {
admins.add(admin);
}
/**
*
* @param adminId the id of the admin you want to look for
* @return the value of the return statement expresses whether the admin has been found and if so returns this admin
*/
public Admin findAdminById(String adminId)
{
for(Admin admin :admins)
@ -109,7 +115,11 @@ public class Administration {
return null;
}
/**
*
* @param studentID the id of the student you want to be deleted from the system
* @return the value of the return statement expresses whether the student has been deleted
*/
public boolean deleteStudents(String studentID){
for(Student student : students){
if(student.getId().equals(studentID)){
@ -120,11 +130,21 @@ public class Administration {
return false;
}
/**
*
* @param student the professor you want to add to the system
*/
public void addStudents(Student student){
students.add(student);
}
/**
*
* @param studentId the id of the student you want to look for
* @return the value of the return statement expresses whether the student has been found and if so returns this student
*/
public Student findStudentById(String studentId)
{
for(Student student :students)

Loading…
Cancel
Save