ran into a little snag with my code. i am trying to push the data of all the nodes in a linkedlist into a stack. problem is, i have no idea how to properly convert a node into a variable.
Node current = list.returnHeadNode();
my error lies in here somewhere. can someone explain to me why this does not work and what i can do to fix it?