Browse Source

Adding deleteCourse method in Administration class

remotes/origin/fdai7780
fdai7921 11 months ago
parent
commit
71e4b58bbb
  1. 10
      src/main/java/org/example/Administration.java

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

@ -30,6 +30,16 @@ public class Administration {
courses.add(course);
}
public boolean deleteCourse(String courseID){
for(Course course : courses){
if(course.getCourseCode().equals(courseID)){
courses.remove(course);
return true;
}
}
return false;
}
/**
*
* @param professorID the id of the professor you want to be deleted from the system

Loading…
Cancel
Save