X430: changePointeeDataDirect

Consider the following class definition:
   class Link{
      Object data;
      Link next;
   }
Use a single assigment to set the info of the Node referred to by p equal to the info of the Node reffered to by r. You must access this info through r. Do not refer to the character 3 directly. It is given that the list L contains the elements [1,2,3] and p points to 1 and r points to 3.

Initial Setup Final Configuration

Your Answer:

Reset
Visualize

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.