5/5 – (4 votes)
Modify the class Linked List in Exercise 1 to make it a Doubly Linked List. Name your class DoublyLinkedList. Add a method addEndto add an integer at the end of the list and a method displayInReverse to print the list backwards.
void addEnd(int x): create this method to add x to the end of the list.
void displayInReverse(): create this method to display the list elements from the last item to the first one.
Create a main() function to test your DoublyLinkedList class.

![[Solved] Implementing a Doubly Linked List](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] CMPSC 101 LAB 9 Basic statistics](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.