Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Sorry, I still don't understand, when executing "firstNode = null", wether firstNode.data = null or firstNode.nextNode = null because firstNode is a object of type ListNode, which has int data and listNode type instances. Commented Mar 23, 2014 at 4:10
  • @tony.wang The whole ListNode object is null meaning Java doesn't even get to the point of allocating memory for it much less any of its fields. Commented Mar 23, 2014 at 4:17