package open; public class sizeyunsuan { public double add(double add1, double add2) { //加法 double result; result = add1 + add2; return result; } public double subtract(double sub1, double sub2) { //减法 double result; result = sub1 - sub2; return result; } public double multiply(double mul1, double mul2) { //乘法 double result; result = mul1 * mul2; return result; } public double divide(double div1, double div2) { //除法 double result; result = div1 / div2; return result; } }