public class TreeNode { private T item; // data item in the tree private int leftChild; // index to left child private int rightChild; // index to right child // constructors and methods appear here } // end TreeNode