Addition, subtraction, multiplication, and division can be efficiently accomplished with a Java calculator software that uses switch cases. The switch case statement in Java is ideal for building a calculator since it makes managing many conditions easier. In order to use switch case in a Java calculator program, you must first define an operator and two input integers. After processing the operator, the switch statement performs the relevant computation.
more details : https://docs.vultr.com/java/ex....amples/make-a-simple