Simple calculator on java