Skip to content

Instantly share code, notes, and snippets.

@benweidig
Created May 16, 2020 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benweidig/77e79f8767572f3d8f619809b3247f38 to your computer and use it in GitHub Desktop.
Save benweidig/77e79f8767572f3d8f619809b3247f38 to your computer and use it in GitHub Desktop.
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