コード例 #1
0
 private void postorderPrinting(Node node) {
   if (node != null) {
     postorderPrinting(node.getLeft());
     postorderPrinting(node.getRight());
     System.out.print(node.getData() + " ");
   }
 }
コード例 #2
0
 public void postorderPrinting() {
   postorderPrinting(root);
 }