Skip to content

Conversation

@ArvindDhaliwal
Copy link

@ArvindDhaliwal ArvindDhaliwal commented Nov 1, 2024

Description.

The code defines a division method that takes two integers and returns the result as a long. Error handling was added to throw an IllegalArgumentException if the divisor is zero.

By submitting this pull request I confirm I've read and complied with the below requirements.

  • I have read the Contribution guidelines and I am confident that my PR reflects them.
  • I have followed the coding guidelines for this project.
  • My code follows the skeleton code structure.
  • This pull request has a descriptive title. For example, Added {Algorithm/DS name} [{Language}], not Update README.md or Added new code.

public class Division {

public static final long division(int a, int b) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure divisor is not zero

@ArvindDhaliwal ArvindDhaliwal closed this by deleting the head repository Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant