Question: In starter code for CreatingCourses.java, please complete one TODO in main and define three methods ( see the starter code ) . The program does

In starter code for CreatingCourses.java, please complete one TODO in main and define three methods (see the starter code). The program does the following: (1) Prompt the user to enter a sequence of courses through a loop and save all the courses in an array list. (2) When user doesn't have more courses to enter, sort the courses by their category and then by CRN. You will need to implement the Comparable interface somewhere. (3) If the user didnt enter any course, the program should print No courses entered. and exit. Otherwise, proceed as follows: a. Display all the courses. b. Prompt user to enter a course name, search through the array list (when comparing, ignore case difference). If found, display Course found. And then display the course. If not found, display "Course not found."

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 Programming Questions!