Evaluating postfix expressions

Chapter: Evaluating postfix expressions

Read section 6.2 on using stacks to evaluate postfix expressions. Grab the authors' code from chapter 6 for Postfix.java and PostfixEvaluator.java. You will need to make a small number of changes:


Exercise 2

Compile Postfix.java and PostfixEvaluator.java in the same directory as your Stack code. The Postfix program should now work exactly as advertised.


rhyspj@gwu.edu