Question: This is a basic class structure: public class SinglyLinkedList { private Link head; private Link tail; //... private static class Link { private E data;
This is a basic class structure: public class SinglyLinkedList
The method will take the nodes of the other SinglyLinkedList and append copies of them to the end of this list. The method should not change the other list. You should return this list. Example : If a has {1,2,3} and b has {4,5,6} Then after a.append(b), it should be 1,2,3,4,5,6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
