diff --git a/cal1.java b/cal1.java new file mode 100644 index 0000000..7053db8 --- /dev/null +++ b/cal1.java @@ -0,0 +1,10 @@ +package Mypackage; + +public class cal1 { +public static double add (double a,double b) {//¼Ó·¨ + return a+b; +} +public static double sub (double a,double b) {//¼õ·¨ + return a-b; +} +}