Simple Calculator in java