Insert a Node at the Tail of a Linked List

  • + 4 comments

    what does this do?

    while (node.next != null){ node = node.next; }

    and why is it needed?