Objective: To get experience using collections
Due: Before class on Monday, Oct 6.
Modify your MediaItem
class such that it implements
the Comparable
interface with the Class type. (Eclipse
will guide you with how to fix the warning.)
We discussed several different types of collections. In your driver program for the MediaItems, use an appropriate collection to store your items instead of an array. Before making your choice, consider how easily you can implement the same functionality as in the last assignment, e.g., easily you can store items, retrieve items, and sort items.
This part is purposedly open-ended. In comments in your driver program, defend your choice of collection.
We've now dealt with handling user input. Modify your driver program so that it provides a menu for the user to manipulate the library. Allow the user to
Arrays
class, I
think you should be able to figure it out. Collections
contain the "Algorithms" part of the Java Collection Framework that
we didn't get to in detail yet.)
Copy your code and execution scores files into an assign8
directory in your turnin
directory.
You will be evaluated based on the following criteria: