Given the following classes, wite the delete() method, which will delete all nodes equal() to Node n. delete() should return true if at least one node could be removed, and return false otherwise. Use Java syntax.Don't use Java API.
Here is my code for delete().But i'm unable to get the correct result.What my problem is, if the Node 'n' is existing multiple times,my delete() will not remove all 'n's.It removes only one 'n'.Pla help me.
My code for delete()
--------------------
----------------------------// end of delete()
Actual Program
---------------
[RP]Added code tags, modified indentation[/RP]
[ September 25, 2008: Message edited by: Rob Prime ]