Skip to content

Instantly share code, notes, and snippets.

@adammb86
Created January 6, 2020 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adammb86/d78059fb22702d36338876f2a6c183a8 to your computer and use it in GitHub Desktop.
Save adammb86/d78059fb22702d36338876f2a6c183a8 to your computer and use it in GitHub Desktop.
Dibuat untuk percobaan Unit Testing di Java
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