Question: If you know that doubly linked list is a linked list that its node contains two references to the previous and to the next node
If you know that doubly linked list is a linked list that its node contains two references to the previous and to the next node in the sequence of nodes. How could you modify the following Node class to implement a doubly linked list?
public class LinkedList { ... private class Node { public Object data; public Node next; } }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
