Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. public int divide(int y) throws CEDDividedByZeroException {
  2. if (y >=0) this.y =y;
  3. else throw new CEDDividedByZeroException ();
  4. return x/y;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement