예제 #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);
 }