In java, create class BNode(T), which implements the interfaceTreeNode(T)
interface methods:
void setRight(TreeNode(T) right) – sets right side of node,where right is the node to the right of this node
void setRight(TreeNode(T) left) – sets left side of node, whereleft is the node to the left of this node
TreeNode getRight() – gets the right node
TreeNode getLeft() – gets the left node
T getData() – gets the data within the node
THEN, create class BT(E), which implements the Tree(E)interface, which has the following methods. Use comparator:
void clear() – clears tree of all elements
boolean contains(E e) – true if the whole tree contains givenelement
E first() – returns
PayPal Gateway not configured
PayPal Gateway not configured