| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This is an implementation of the Exception Handler
Sorry, something went wrong.
|
|
||
| public static final long division(int a, int b) { | ||
| long result = ((long) a) / ((long) b); | ||
| // Expection Handler |
There was a problem hiding this comment.
Line 6 - 11 adds the Expection Handler for when the division is an extreme case (Ex: 0/0, 1/0, ...)
Sorry, something went wrong.
There was a problem hiding this comment.
Looking Good
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
By submitting this pull request I confirm I've read and complied with the below requirements.
Changed Expection Handler