Created
May 16, 2020 16:53
-
-
Save benweidig/77e79f8767572f3d8f619809b3247f38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public float divide(float divident, float divisor) { | |
try { | |
return divident / divisor | |
} | |
catch (ArithmeticException e) { | |
System.out.println("Division error"); | |
} | |
return 0.0f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment