Question: Part 2 : SingleLinkedList Assume the SingleLinkedList class, which is similar to the java built - in class, is given to you ( as discussed
Part : SingleLinkedList
Assume the SingleLinkedList class, which is similar to the java builtin class, is given to you as discussed in the lecture, and the complete class is uploaded on the blackboard write the implementation of the following methods:
a Write a method called ListConcatenation within the class that has two parameters listA and listB of type SingleLinkedList. The method should modify listA by copying the nodes from listB to listA starting from the end of listA Assume both lists are nonempty.
The method head is
public void ListConcatenation SingleLinkedList listA, SingleLinkedList Before calling the method: myList : listB
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
