step7
Class traverse

java.lang.Object
  extended by step7.traverse

public class traverse
extends Object

output expr tree in postfix notation.


Constructor Summary
traverse()
           
 
Method Summary
protected static String classname(Object obj)
          return last component of (inner) classname.
static void main(String[] args)
          read an expression from standard input and output it in postorder.
 void visit(Object node)
          postorder traversal to output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

traverse

public traverse()
Method Detail

visit

public void visit(Object node)
postorder traversal to output.


classname

protected static String classname(Object obj)
return last component of (inner) classname.


main

public static void main(String[] args)
                 throws Exception
read an expression from standard input and output it in postorder.

Throws:
Exception