摘要: public class BinaryTree { private Node root; /** * 内部类实现结点类,可提高安全性 */ private static class Node{ Node left; Node right; int data; Node(int newData){ left=null; right=null; data=newData; } } /** * 创建一个空的二叉树 */ public BinaryTree(){ root=null; } /** *递归... 阅读全文
posted @ 2013-07-02 13:32 冰雪柔情的天空 阅读(141) 评论(0) 推荐(0) 编辑