Search:

Type: Posts; User: thedolphin13

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    3,380

    Re: Multiple instances of linked list

    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...
  2. Replies
    5
    Views
    3,380

    Re: Multiple instances of linked list

    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...
  3. Replies
    5
    Views
    3,380

    Multiple instances of linked list

    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;...
Results 1 to 3 of 3