Search:

Type: Posts; User: copeg

Search: Search took 0.20 seconds.

  1. Replies
    11
    Views
    2,345

    Re: LinkedList Objects

    place code here
  2. Replies
    11
    Views
    2,345

    Re: LinkedList Objects

    The linkedList in the references method is never instantiated.

    IntLinkedList linkedList = null;
    linkedList.add(1);//throws null pointer exception


    You must instantiate the object before...
  3. Replies
    11
    Views
    2,345

    Re: LinkedList Objects

    I have edited your post, but for future reference please surround your code with the
    tags, without which your code is completely illegible.

    Where is the exception thrown? Exceptions give line...
  4. Replies
    11
    Views
    2,345

    Re: LinkedList Objects

    The variables of type IntLinkedList are not the problem, the problem is with the variables within that class and how they are declared (eg static).



    You already have this method so I'm not...
  5. Replies
    11
    Views
    2,345

    Re: LinkedList Objects

    All of your LinkedList variables are not instance variables, but rather class variables. eg static - when you set their value you end up changing the value for the class and not the instance. See...
Results 1 to 5 of 5