Implemented ReversePolishNotationCalculator in Java using the Visitor Pattern