Reference no: EM132200502
You are to write a Java Class using Generics. This class is to be a Double Linked List container for holding other objects which are comparable.
The Class should support the following features: Print the elements of the collection in order (ascending). Insert an item. Remove an item. Empty the collection.
Find the index of an element, using a binary recursive search. The program should include a driver class (Main) that provides a command line input/output.
This driver class should: Print a prompt indicating options to test each of the features above.
Provide an option to exit. Accept command-line input for both integer and decimal values (such as 2.3).
Additional Requirements
The class should be named MyList.java The main class should be named Main.java You are not to use any third party packages for List type collections.
The only packages you should be using are for the Input/Output and for holding the input data. All code should have proper error checking and should have no unexpected termination.
If invalid data is input, the user should be informed of it and allowed to re-enter the data.