CMSC 204 Recursion and Iterator Lab




5/5 - (4 votes)

Write a recursive method to find the largest value in a singly linked list. Create a MyLinkedList .java which inherits from the class LinkedList and add the recursive method public String findLargest(). You will need to use the iterator to access each node of the linkedlist. You may need to add a helper method to start the recursion. Use the driver class to populate your linked list and demonstrate that your method works. Add an additional test to
The largest in the driver class provided is Tom.
Upload your and the modified to Blackboard.