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...
Type: Posts; User: Norm
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...
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...
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.
Not without a program that compiles, executes and shows the problem.
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...
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...