Unpacking Nodes and Linked Lists in Java