Update Calculator.java

added swap