[SOLVED] Implement a method called reverse

20.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon List-Reverser.zip (7.3 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Implement a method called reverse (“public static void reverse(LinkedList strings)”) that takes in a LinkedList of strings and reverses each entry in the linked list. (No main is required for this question; the output below comes from us testing the method from another class.) Do not use Collections.reverse() to reverse the elements of the linked list. [5 points] See the attached ListReverser.java for the code in the driver/main method we are using to run your reverse method. You need to complete the reverse method inside this class.

HW11Q1Example.png

  • List-Reverser.zip