正在加载图片...
class TreeApp public static void main(String[]args) Tree theTree new Tree; /make a tree theTree.insert(50,1.5); /insert 3 nodes theTree.insert(25,1.7); theTree.insert(75,1.9); node found theTree.find(25);//find node with key 25 if(found !null) System.out.println ("Found the node with key 25"); else System.out.println ("Could not find node with key 25"); }/end main() /end class TreeApp }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有