Question: JAVA! please *ecplise For this assignment, you will implement a singly- linked node class. Use your singly-linked node to implement a singly-linked list class that

 JAVA! please *ecplise For this assignment, you will implement a singly-

JAVA! please *ecplise For this assignment, you will implement a singly- linked node class. Use your singly-linked node to implement a singly-linked list class that maintains its elements in ascending order. The SinglyLinkedList class is defined by the following data: A node pointer to the front and the tail of the list Implement the following methods in your class: A default constructor list myList A copy constructor list myList(aList) Access to first element myList.front() Access to last element myList.back() Insert value myList.insert(val) Remove value at front myList.pop_front Remove value at tail myList.pop_back) Determine if empty myList.empty Return # of elements myList.size() Reverse order of elements in list myList.reverse() Merge with another ordered list myList.merge(aList) Write a thorough test program for this class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!