X346: refernceValueNode

Consider the following class definition:
   class Link{
      Object data;
      Link next;
List L has a reference to the first node. Write code that returns reference to the first node in the list containing data that equals a parameter (otherwise return null) . Make sure to account for edge cases!

Initial Setup Final Configuration


refernceValueNode(Link.CreateList(1,2,3,4),3) -> Link.CreateList(3,4)

Practice a different Java exercise