Skip to content

Commit 7306277

Browse files
Added Calculator.java with basic methods
1 parent 30f3dd5 commit 7306277

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Calculator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public class Calculator {
2+
public int add(int a, int b) { return a + b; }
3+
public int subtract(int a, int b) { return a - b; }
4+
public int multiply(int a, int b) { return a * b; }
5+
public int divide(int a, int b) { return a / b; }
6+
}

0 commit comments

Comments
 (0)