Students and Courses Part 2 (10 points) (Java Maps and Lists) You created the Students and Courses application (Part 1) in Lab 1. Now you are asked to improve it in the following ways: (1) Create a TreeMap of course names. Each map entry should contain a single integer that counts the number of students who have enrolled in that course. (2) Display the map in ascending order by course name, showing each course name and its enrollment count. Note: You cannot directly increment the enrollment count in a map entry. Instead, retrieve the existing count using the get() method, add 1 to the count, and then insert the key and updated enrollment count back into the map by calling the put() method. The final test program should display the same output as lab 1 with the addition of the Course Enrollments below that. You should have the 15 students from Lab 1.

Looking for solution of this Assignment?


We deliver quality original papers

Our experts write quality original papers using academic databases.  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay