The methods remove and the recursive remove Entry, as described in Segments 26.28 through 26.34, use the inner class Return Object. In this way, remove Entry can convey to remove both the root of the revised tree and the entry it removed. Revise these methods to instead use a class Pair, like the one given in Java Interlude 8. Pair will need accessor methods for its fields. The method remove Entry can then return the root and the removed entry as a Pair object.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here