Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
public class Driver { public static void main(String [] args) { Tree t = new Tree(); int [] input = { 4, 3, 2, 1 }; for (int i = 0; i < input.length; ++i) { t.add(new Node(input[i])); } System.out.printf("Here is tree (verbose):\n%s\n", t.toStringVerbose()); System.out.printf("A little prettier format:\n%s\n", t.toString()); //System.out.printf("The height is %d\n", t.findTreeHeight()); // We're not testing removals. } }