Skip to content

Conversation

@76vx
Copy link
Contributor

@76vx 76vx commented Jan 5, 2026

Improved Calculator.java by:

  • Replacing multiple if-else statements with switch for better readability.
  • Adding Javadoc documentation to methods.
  • Implementing safety checks for division by zero and negative logarithms.

Refactor Calculator class to use switch statements for better clarity and added safety validations for operations.
@kishanrajput23 kishanrajput23 merged commit b9fd0e8 into kishanrajput23:main Jan 7, 2026
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