Java implements four arithmetic operations