Question: Using the Student class in Exercise 4, write a recursive version of the method that displays only the name of the ;th student in a

Using the Student class in Exercise 4, write a recursive version of the method that displays only the name of the ;th student in a linked list of students. Assume that i ~ 1 and that the linked list contains at least i nodes. (Hint: If i = 0, print the name of the first student in the list; otherwise, print the (i - 1 )th student name from the rest of the list.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!