Created
January 6, 2020 06:59
-
-
Save adammb86/d78059fb22702d36338876f2a6c183a8 to your computer and use it in GitHub Desktop.
Dibuat untuk percobaan Unit Testing di Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SESimpleAdd { | |
static public int add(int a, int b) { | |
return a + b; | |
} | |
static public int multiply(int a, int b) { | |
return a * b; | |
} | |
static public int subtract(int a, int b) { | |
return a - b; | |
} | |
public int AddString(String s1, String s2) | |
{ | |
int value1 = Integer.parseInt(s1); | |
int value2 = Integer.parseInt(s2); | |
return value1+value2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment