Skip to content

Calculator #3314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Calculator #3314

wants to merge 2 commits into from

Conversation

shahriar573
Copy link

Pull Request Template

What does this PR do?

Copy link

github-actions bot commented Aug 20, 2025

PR Summary

This PR introduces two new Java classes: Calculator and Student. The Calculator class provides basic arithmetic operations (add, subtract, multiply, divide), including error handling for division by zero. The Student class represents student data, including age and name, with getter and setter methods and a toString method for easy object representation.

Changes

File Summary
Calculator.java This file contains the Calculator class, which performs basic arithmetic operations (addition, subtraction, multiplication, and division). It includes input validation to prevent division by zero.
Student.java This file contains the Student class, which represents student data with attributes for age and name. It includes getter and setter methods and a toString method for easy object representation.

autogenerated by presubmit.ai

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

LGTM!

Review Summary

Commits Considered (2)
Files Processed (2)
  • Calculator.java (1 hunk)
  • Student.java (1 hunk)
Actionable Comments (0)
Skipped Comments (2)
  • Calculator.java [1-25]

    readability: "Rename class for clarity."

  • Student.java [1-43]

    readability: "Rename class for clarity."

Copy link

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