Question: Question Two ( 1 6 Points 5 + 7 + 4 ) Part 1 [ Single Linked List: Output ] ( 5 points 3 +
Question Two Points
Part Single Linked List: Output points
a points Assume you are given the following specialCopy method, which is included in the SingleLinkedList class. Show the output of the main method of the class Test.
public void specialCopy SingleLinkedList list
Node pt listhead;
Node pt ;
while pt null
pt new Node ptdata;
if head null head pt;
ptnext head;
head ;
pt ptnext;
public class Test
public static void mainString args
SingleLinkedList Integer list new SingleLinkedList ;
SingleLinkedList ; otherList.size ;
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
