|
@@ -19,7 +19,6 @@ public class Operations {
|
19
|
19
|
public static int subtract(int x, int y) {
|
20
|
20
|
return x - y;
|
21
|
21
|
}
|
22
|
|
-
|
23
|
22
|
|
24
|
23
|
/**
|
25
|
24
|
* The multiplication function
|
|
@@ -29,5 +28,19 @@ public class Operations {
|
29
|
28
|
*/
|
30
|
29
|
public static int multiply(int x, int y) {
|
31
|
30
|
return x * y;
|
|
31
|
+
|
|
32
|
+ }
|
|
33
|
+
|
|
34
|
+ public static int divide(int x, int y) {
|
|
35
|
+ return x / y;
|
|
36
|
+
|
32
|
37
|
}
|
33
|
38
|
}
|
|
39
|
+/**
|
|
40
|
+ * An example of a method - replace this comment with your own
|
|
41
|
+ *
|
|
42
|
+ * @param y a sample parameter for a method
|
|
43
|
+ * @return the sum of x and y
|
|
44
|
+ */
|
|
45
|
+
|
|
46
|
+
|