Skip to content

Conversation

MMI122
Copy link

@MMI122 MMI122 commented Aug 21, 2025

No description provided.

@MMI122 MMI122 closed this Aug 21, 2025
@MMI122 MMI122 reopened this Aug 21, 2025
public int subtract(int a, int b) { return a - b; }
public int multiply(int a, int b) { return a * b; }
public int divide(int a, int b) {

Choose a reason for hiding this comment

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

Just to nit pick, Let's remove this extra line

Suggested change

public int divide(int a, int b) {

if (b == 0 ) throw new ArithmeticException("Invalid operation ");

Choose a reason for hiding this comment

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

Here too, remove extra line :)

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants