public void delete(int deleteItem) {
        if (isEmpty()) {
            System.out.println("Tree Empty");
        } else {
            parent = root;
            NodeDelete = null;
            search(root, deleteItem);
            TreeNode lChild = NodeDelete.lChild;
            TreeNode rChild = NodeDelete.rChild;
            if ((lChild == null) && (rChild == null)) {
                //睨拘荊莎虱А卉添預揶脚疔壕с
                if (child == 'l') {
                    parent.lChild = null;
                } else {
                    parent.rChild = null;
                }
            } else if ((lChild != null) && (rChild != null)) {
                //睨拘荊莎虱А卉添奏睨拘度（友睨拘
                countLevel = 0;
                inordersuccessor(NodeDelete.rChild);
            } else {
                //睨拘荊莎虱А卉添奏睨拘度）講茹睨拘 
                if (NodeDelete.lChild != null) {
                    if (child == 'l') {
                        parent.lChild = NodeDelete.lChild;
                    } else {
                        parent.rChild = NodeDelete.lChild;
                    }
                } else {
                    if (child == 'l') {
                        parent.lChild = NodeDelete.rChild;
                    } else {
                        parent.rChild = NodeDelete.rChild;
                    }
                }
            }
        }
    }