De'Jon Johnson 6 年之前
父節點
當前提交
462e82c83c
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8
    3
      src/main/java/rocks/zipcode/calcskin/CalcEngine.java

+ 8
- 3
src/main/java/rocks/zipcode/calcskin/CalcEngine.java 查看文件

@@ -6,18 +6,23 @@ public class CalcEngine {
6 6
     }
7 7
 
8 8
     public double add(double v, double v1) {
9
+
9 10
         return Double.NaN;
11
+        return v +v1;
10 12
     }
11 13
 
12 14
     public double subtract(double v, double v1) {
13
-        return Double.NaN;
15
+
16
+        return v-v1;
14 17
     }
15 18
 
16 19
     public double multiply(double v, double v1) {
17
-        return Double.NaN;
20
+
21
+        return v+v1;
18 22
     }
19 23
 
20 24
     public double divide(double v, double v1) {
21
-        return Double.NaN;
25
+
26
+        return v/v1;
22 27
     }
23 28
 }