Insert a Node at the Tail of a Linked List

  • + 3 comments

    how does this work? there is no link between the 2ndlast item (formerly the last) and the new one just added. Also current.next, when current is null woud return an NPE, wouldnt it?