How can I swap the last two linked lists? I am trying to use an auxiliary node, since it seems to me that I need to avoid the "loss" of the node in the process ...
... Node node3 = new Node("Hi", null) ; Node node4 = new Node("Hello", null) ; ...
I think I'm doing it wrong, any clues?
java linked-list
raoulbia
source share