Add a mergeLists method to the class OrderedLinkedList. The mergeLists method shall accept two lists as inputs and creates a new list with all elements merged and in proper order. Suppose list1 points to the list with the elements 2, 6, and 7 and list2 points to the list with the elements 3, 5, and 8. The method call newlist.mergeLists(list1,l
ist2); should produce a list with the elements 2, 3, 5, 6, 7, and 8. YOU MAY NOT USE THE INSERT METHOD PROVIDED IN THE ORDEREDLINKEDLIST CLASS. Be sure to write the definition of the method mergeLists and thoroughly test your program.
I have created the method but I havent been able to get the merged list to print out in the TestProgOrderedLinkedList.
java file. Please help