Saint
Marys University
Department of Mathematics and
Computing Science
CSC 465.2: Principles of
Object-Oriented Programming
WINTER 2000-2001
Assignment #2
Instructor: Dr. Pawan Lingras
Due Date: January 19, 2001
Use Vector and Stack classes from Java library to implement a class called PostFixCalculator to evaluate postfix expressions.
Your class must have
- main
- evaluate(Vector expr) that returns the answer as a string
- isOperator(String token) that returns a boolean if the token is an operator
Valid operators are: +, -, /, X, ^
You are expected to use command line arguments for the input.