Parsing an arithmetic expression and building a tree from it in Java - Stack Overflow
Assuming this is some kind of homework and you want to do it yourself.. I did this once, you need a stack So what you do for the example is: parse what to do? Stack looks like ( push it onto the stack ( 5 push 5 ......