コード例 #1
0
ファイル: BTNode.java プロジェクト: c-goss/lab0809treetester
  /** Prints the tree in order from left to right. */
  public void inOrderPrint() {
    if (left != null) {
      left.inOrderPrint();
    } // end left

    System.out.println(data);

    if (right != null) {
      right.inOrderPrint();
    } // end right
  } // end inOrderPrint