A Java representation of a calculator, using stacks to store operators and operands.