keymasterviriya1150

Junit

Sep 27th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package mytest;
  7.  
  8. /**
  9.  *
  10.  * @author STD
  11.  */
  12. public class Calculator {
  13.  
  14.     public int multiply(int x, int y) {
  15.         return x+y;
  16.     }
  17.      public int minus(int x, int y) {
  18.         return x-y;
  19.     }
  20.       public int divide(int x, int y) {
  21.         return x/y;
  22.     }
  23.       public int modulo (int x, int y) {
  24.         return x%y;
  25.     }
  26.    
  27. }
Add Comment
Please, Sign In to add comment