Search:

Type: Posts; User: felixtum2010

Search: Search took 0.28 seconds.

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

    At Junky: I theoretically understand how a list works. The problem is I cannot tell if my code does what a list is supposed to do. I do not really understand it. Thats why it would be so helpful if...
  2. Re: Singly Linked List of Integers, get(int i) function throws Null Pointer Exception

    I have never heard of that. It would solve my problem though.
    Can you tell me how the circular list is implemented in my code?

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

    Hi Norm,
    I ran the code through a debugger and it turns out that current.this.next = null. In other words the this pointer does not point at the beginning of the list, but at the end. This is why...
  4. Re: Singly Linked List of Integers, get(int i) function throws Null Pointer Exception

    20 dollars to the one who fixes this otherwise fine code. pay via paypal
  5. Re: Singly Linked List of Integers, get(int i) function throws Null Pointer Exception

    Dont be scared by the length of the code, the paragraph that I am having trouble with is the get() method (5 lines).

    I also think that the error lies in the append method somehow. I believe that...
  6. Singly Linked List of Integers, get(int i) function throws Null Pointer Exception

    Dear Forum,

    I have written this neat Java Class as part of my preparation for next week's exams. Somehow, the function IntList get(int i), which is supposed to return a reference to the i-th...
Results 1 to 6 of 6