Question: Exercise 2 Create an ordered linkedlist class Ordered List using java.util.Linkedlist. The elements of the list are numbers. Write the following methods of Ordered List:
Exercise 2 Create an ordered linkedlist class Ordered List using java.util.Linkedlist. The elements of the list are numbers. Write the following methods of Ordered List: 1. insert (to insert a number in the list in the ascending order) 2. search (returns the index of a number in the list or -1) 3. remove (remove a number from the list) Write a test class, TestOrdered List, to test your linkedlist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
