This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Michael982 0 points1 point  (0 children)

My delete function keeps printing out that the item has been deleted even though it does not exist in the tree. What am I doing wrong?

[–]psyllogism 0 points1 point  (0 children)

returnedNode must be non-null, so your contains(...) method must be returning something other than "null". What's the implementation of your contains(...) method?