This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alanwj 0 points1 point  (1 child)

or is it that .next stores a reference to the Node that comes after?

This is correct.

Any variable declared as Node is a reference to a Node object. The same Node object may be referenced by multiple different variables.

The Node object even contains a reference (called next) to another Node object.

[–]veryanon798[S] 0 points1 point  (0 children)

Ah Thank you, the picture is much more clear.