This Example will teach you how to make the Calculator programming in java step by step in right way. this is the professional way to do the calculation part. First Step Create the Variable int operation; Create the Method Sum. in order to calculate the total using switch case statement. public void getSum(int operation) { if(txtNum1.getText().length()!=0 && txtNum2.getText().length()!=0) { switch(operation) …