I know there is a code snppet for converting infix to postfix in java
here is! , and annunfanwen is an author
method
public String toPostfix(String infix)
adds usefull spaces as separator L28,38,48,54
method
public int evaluate(String postfix)
don't know about it . Also can't collect digits together to form number
In addition little stack tracer
Stack<Integer> myStack = new Stack<Integer>() {
public Integer push(Integer i) {
Integer j = super.push(i);
System.out.println("push " + i);
return j;
}
public Integer pop() {
Integer i = super.pop();
System.out.println("pop " + i);
return i;
}
};