Question: Here's a DLL node definition: public class DLLNode { public String data; public DLLNode prev, next; public DLLNode(String data, DLLNode next, DLLNode prev) { this.data
Here's a DLL node definition:
public class DLLNode { public String data; public DLLNode prev, next; public DLLNode(String data, DLLNode next, DLLNode prev) { this.data = data; this.next = next; this.prev = prev; } } The next of the last node will be null, and the prev of the first node will be null.

With the same DLLNode definition as in the previous problem, implement a method to reverse the sequence of items in a DLL. Your code should NOT create any new nodes it should simply resequence the original nodes. The method should return the front of the resulting list public static DLLNode reverse (DILNode front) COMPLETE THIS METHOD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
