Question: Implement a Node class that stores an integer and a LinkedList class that stores nodes of Node. In the LinkedList class, implement addFrist() in a
Implement a Node class that stores an integer and a LinkedList class that stores nodes of Node.
In the LinkedList class, implement addFrist() in a regular way, and then implement printList() and searchList() using recursion.
The searchList() method searches a pass-in integer number, returns the address of the first node encountered that stores the number, or returns a null if such a node does not exist in the list. Write a test class to test your methods.
Step by Step Solution
There are 3 Steps involved in it
Lets break down the task into manageable steps by implementing the required classes and methods I will explain each step so you can understand how the ... View full answer
Get step-by-step solutions from verified subject matter experts
