Menu

(Solved) : Modify Linkedlist1 Class Presented Chapter Adding Sort Reverse Methods Reverse Method Reve Q37169673 . . .

Modify the LinkedList1 class presented in this chapter by addingsort() and reverse() methods. The reverse method reverses the orderof the elements in the list, and the sort method rearranges theelements in the list so they are sorted in alphabetical order. Donot use recursion to implement either of these operations. Extendthe graphical interface in the LinkedList1Demo class to supportsort and reverse commands, and use it to test the new methods.

Include the following modifications:

  • Read in the names from an input file.
  • Instead of using a graphical interface, create a menu methodand use it to interface with the user.
  • Include menu options to add, remove and find names as well asto sort and reverse the entire contents of the list.
  • The program should execute until the user enters “exit.”
  • Be sure to include adequate internal documentation in yoursource.

LinkedList1.java: https://pastebin.com/idSSSVeH

LinkedListDemo.java: https://pastebin.com/YCKpw5AT

Expert Answer


Answer to Modify the LinkedList1 class presented in this chapter by adding sort() and reverse() methods. The reverse method revers…

OR