Skip to content

Commit 1286ca0

Browse files
committed
Modified add method in feature/calculator
1 parent 8cee71a commit 1286ca0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/thealgorithms/calculator.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
public class calculator {
44
public int add(int a, int b) {
5-
return a + b;
6-
}
5+
System.out.println("Adding numbers");
6+
return a + b; // different change
7+
}
8+
79

810
public int subtract(int a, int b) {
911
return a - b;

0 commit comments

Comments
 (0)