Search:

Type: Posts; User: Junky

Search: Search took 0.10 seconds.

  1. Re: Singly Linked List of Integers, get(int i) function throws Null Pointer Exception

    Taking a rough stab at it I would say the problem is in the append method because you return a new IntList object and assign it to lst. Therefore somewhere along the line that variable is no longer...
  2. Re: Singly Linked List of Integers, get(int i) function throws Null Pointer Exception

    You have a basic misunderstanding of how Lists work. You have each IntList object pointing at the next IntList object. Whereas how Lists should work is you only have one IntList object and it points...
Results 1 to 2 of 2