Java Binary Search Tree Recursive Copy Tree
问题 I'm working on a problem which requires me to copy a binary search tree recursively and to return the tree. I am coding in the binary search tree class, so it will copy whatever binary search tree it is called on. The requirements say that the private method must have a return type of Entry<E> and a parameter of type Entry<E> . The problem I'm running into is getting multiple entries added to the tree. Here is what I currently have: public BinarySearchTree<E> rcopy(){ BinarySearchTree newTree