From fb096688b7212f7e1be67d6230a61209e7126070 Mon Sep 17 00:00:00 2001 From: Rohit Goyal Date: Fri, 2 Oct 2020 14:57:43 +0530 Subject: [PATCH] Update Calculator.java added more functions to the calculator app. --- .../jsmart/zerocode/jupiter/demo/Calculator.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/junit5-testing/src/main/java/org/jsmart/zerocode/jupiter/demo/Calculator.java b/junit5-testing/src/main/java/org/jsmart/zerocode/jupiter/demo/Calculator.java index 5c8779015..84dbdd036 100644 --- a/junit5-testing/src/main/java/org/jsmart/zerocode/jupiter/demo/Calculator.java +++ b/junit5-testing/src/main/java/org/jsmart/zerocode/jupiter/demo/Calculator.java @@ -2,8 +2,21 @@ public class Calculator { + // this functions does addition public int add(int a, int b) { return a + b; } + // this functions does substraction + public int substract(int a, int b) { + return a - b; + } + // this functions does multiplication + public int multiply(int a, int b) { + return a * b; + } + // this functions does division + public int divide(int a, int b) { + return a / b; + } }