Specifications
- String expression: Contains ints, doubles, and operators ( + - / * and % ) separated by one space
- You must use an ArrayDeque
to store the values. It will act as a stack. - Return a double value
- Throw an IllegalArgumentException when there are too many or too few operands/operators.
public class Calculator {
public static double eval(String expression){
return 0.0;
}
}
Save your work here: .../APCSA2/apcsa-assignments-spring-YourUsername/classwork/03_24_stack_calculator/Calculator.java