LoganBlackisle

classtotest

Jun 17th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. package prep_24_junit;
  2.  
  3. public class ClassToTest {
  4. int a, b;
  5.  
  6. ClassToTest(int a, int b) {
  7. this.a = a;
  8. this.b = b;
  9. }
  10.  
  11. public int add() {
  12. return a + b;
  13. }
  14.  
  15. public int subtract() {
  16. return a - b;
  17. }
  18.  
  19. public int multiply() {
  20. return a * b;
  21. }
  22.  
  23. public int divide() {
  24. return a / b;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment