CSC403: Printing: Print postfix [4/10] |
public void printPost () { printPost (root); StdOut.println (); } private static void printPost (Node x) { if (x == null) return; printPost (x.left); printPost (x.right); StdOut.print (x.key + " "); }
Yeah!
What about using a loop?