OK...so list and first reference the same LinkedList object, which explains why when I make a change to one, it shows on the other. SO...how do I use clone to make list, first and second (I'll be...
Type: Posts; User: thedolphin13
OK...so list and first reference the same LinkedList object, which explains why when I make a change to one, it shows on the other. SO...how do I use clone to make list, first and second (I'll be...
I thought list and first were LinkedList objects?
IntLinkedList list = new IntLinkedList(); and IntLinkedList first = new IntLinkedList();
Maybe I have this wrong or am not understanding. How...
OK, this is driving me nuts! The are three classes: Node, LinkedList and Test.
Node is...the node:
class IntNode{
private int data; //variable to store an integer value.
private Node link;...