made a calculator using java