It's frustrating to find errors in code you were sure was perfect! You'll make both of those errors again, assuming code can't be broken and making new objects when you shouldn't, so be looking for...
Type: Posts; User: GregBrannon
It's frustrating to find errors in code you were sure was perfect! You'll make both of those errors again, assuming code can't be broken and making new objects when you shouldn't, so be looking for...
Ya, I forgot that a lot of the code was provided from the book, which can be a blessing or a curse. To be a blessing, you have to understand it. I document my understanding of provided code by...
So focus on the add() method, and the add() method relies heavily on the getNodeBefore() method, so check that. And getNodeBefore() relies on getData() and getNextNode(), so you'll have to check...
So there are several possible sources of the "error(s)" you're experiencing:
Data isn't being read from the file correctly
Data read from the file isn't being used to add items to the queue
The...
How are you testing it? How do you know it is or isn't working correctly? If you have sample runs, errors, or results from an online checking program, post those. Not sure what your question is or...