public class SearchTreeNode { public E data; // data stored at this SearchTreeNode public SearchTreeNode left; // reference to left subtree public SearchTreeNode right; // reference to right subtree // post: constructs a leaf node with given data public SearchTreeNode(E data) { this(data, null, null); } // post: constructs a SearchTreeNode with the given data and links public SearchTreeNode(E data, SearchTreeNode left, SearchTreeNode right) { this.data = data; this.left = left; this.right = right; } }