Question: Write the class Node that describes the structure of a node in a linked list with an integer data field. Given a linked list class
Write the class Node that describes the structure of a node in a linked list with an integer data field.
Given a linked list class that stores integers. Implement method toString() for that class.
Implement copy constructor for linked link class.
Implement recursive method int getSize() that calculates and returns size of the linked list.
Write method void doubleList()that traverses the list, doubling value stored in each node.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
