Question: TAKES NO PARAMETERS 13. Complete the class by writiemethode foon, Orreny more methods other than the pocked) Frblic class Link private Link nex:/ull if this
13. Complete the class by writiemethode foon, Orreny more methods other than the pocked) Frblic class Link private Link nex:/ull if this is the last link private int value: public Link(Link n, int v) next ; valueV; Do not use loops, or create any more methods (other than those specified). class or instance variables. Write a recursive instance method modify that takes no parameters and replaces each link's value with the next link's original value. The last WK's value should be set to zero. For example, if the linked list is {(first)4 -> 3 -> 20ast)}. The final values will be {3 -> 2 ->0}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
