/* * Kyle Pierce * CSE 143 * * Class for storing a single node of a binary tree of ints */ public class TreeNode { public E data; public TreeNode left; public TreeNode right; // constructs a leaf node with given data public TreeNode(E data) { this(data, null, null); } // constructs a branch node with given data, left subtree, // right subtree public TreeNode(E data, TreeNode left, TreeNode right) { this.data = data; this.left = left; this.right = right; } }