File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

my coding is not deleting the node

Shital Joshi
Greenhorn

Joined: Jun 30, 2010
Posts: 9

Tom Reilly
Rancher

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?

rc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: my coding is not deleting the node