X404: changePointeeNext2

Consider the following class definition:
   class Link{
      Object data;
      Link next;
   }
Write a single assignment statement to remove the node with info 'B'. Given that the list L contains the elements [A,B,C] and p points to 1.

Initial Setup Final Configuration

Your Answer:

Reset
Visualize

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.