while (more input) {
next = nextToken()
if (next is operand)
emit next
else {
while (!stack.isEmpty() && (precedence(top()) >= precedence(next))) {
emit(pop());
} // while
push(next)
} // else
}
while !stack.isEmpty()
emit(pop())
E.g. 1+(2*3)-4... -> postfix -> 3
long getTheTime() { return System.currentTimeMillis(); }