This preview shows page 1. Sign up to view the full content.
Unformatted text preview: constants), and the operators +, -, * and /, as well as round brackets ( and ). Spaces between characters in the infix expression should be ignored. Any other symbol should generate an InvalidInfixExpressionStringException . Note that the class expression does not verify that the string provided to the constructor is in valid infix notation. Your method postfix does not have to detect invalid infix expression strings: you can assume the expressions are valid. Here is a test program testExpression that provides a few test cases. You should, however, test your program using a broader range of test cases. Pay particular attention to boundary conditions....
View Full Document
This note was uploaded on 10/28/2010 for the course CSE 2011 taught by Professor Someone during the Summer '10 term at York University.
- Summer '10