Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: linked list printing empty after removing duplicates

    You need to play computer with the code to see what it is doing.
    Take a piece of paper and draw a linked list with a first variable pointing to the list. Then manually remove one of the items in...
  2. Re: linked list printing empty after removing duplicates

    Hard to debug if it does not compile.

    The way I'd debug it is by adding lots of println statements to see what the code is doing. If you don't know what the code is doing, it is very hard to fix...
  3. Re: linked list printing empty after removing duplicates

    Sorry, I can't help you. There are too many missing classes for testing.


    I don't see any println staements for debugging. You need to add some to see what the code does when it executes.
  4. Re: linked list printing empty after removing duplicates

    Not without a program that compiles, executes and shows the problem.
  5. Re: linked list printing empty after removing duplicates

    Print out the values of the variables before and after every time their value changes.

    What is this code for?


    if(found)
    return found;
    else
    return...
  6. Re: linked list printing empty after removing duplicates

    Time for some more debugging. Add printlns to the code to shown the values of variables as you change them to see where the links are getting disconnected to make an empty list.

    Another technique...
Results 1 to 6 of 6