We have been assigned a Binary Search Tree project for homework and for the most part my tree program works perfectly fine.
Print(shows tree-node values in-order), search, insert, and so on work perfectly fine; yet when I use the remove command and immediately use the print command the program crashes during the moment it should display the removed node on the value list, and then gives me an error pop-up.
I think I tried everything from helper methods to dissecting each function individually, though the main problem comes from this remove method. I've went over more than enough websites as well, asked friends, and went through my notes, though haven't found a solution.
Could anyone help point me into the right direction so I could solve the problem?