Question: cCasses and object java public int addCourse(String courseCode) This method adds the class with code courseCode (for example mth207) to some running list of courses.
cCasses and object
java
public int addCourse(String courseCode)
This method adds the class with code courseCode (for example mth207) to some running list of courses. The method returns the current number of enrolled courses.
public int dropCourse(String courseCode)
This method searches the list of enrolled courses for the argument and removes the course if it exists. Return the current number of enrolled courses.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
