File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes my coding is not deleting the node Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "my coding is not deleting the node" Watch "my coding is not deleting the node" New topic

my coding is not deleting the node

Shital Joshi

Joined: Jun 30, 2010
Posts: 9

Tom Reilly

Joined: Jun 01, 2010
Posts: 618
You only provide half the code. Where's the code that calls deleteNode()?
Ralph Cook
Ranch Hand

Joined: May 29, 2005
Posts: 479
I think you have bigger problems than just what calls deleteNode().

Your methods assume things about the nodes being passed in as parameters that I don't think are reasonable. Who's to say that the node being deleted has a previousNode? What are those statics in StrTree for? Is there really only one of those items in your system?

I would start by separating the concept of "tree" from the concept of "node" and go from there. What are you trying to do overall?

I agree. Here's the link:
subject: my coding is not deleting the node
It's not a secret anymore!