Question: java create two classes. One named Student, and another named StudentTester. Methods: public static String getStudentName () public static String getStudentID () public int addCourse(String

java create two classes.

One named Student, and another named StudentTester.

Methods: public static String getStudentName () public static String getStudentID () public int addCourse(String courseCode) This method adds the class with code courseCode (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.

public String getCourseLoadStatus() Return the following String based on the number of courses the student is enrolledn:

< 4 Part time 4 to 6 Full time > 6 Overload!

@Override public String toString() Return a String containing the student name, ID, a list of all classes the student is currently enrolled in, and the course load status.

get the list of some cources from scanner and remove if not match with your enrolled course then return only enrolled courses

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!