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
- Summer '10
- Mathematical notation, Infix notation, testExpression