Update Calculator.java

Introducing bug