This is a simple calculator program built in Java Swing.
- Addition, subtraction, multiplication, and division operations
- Clear button to reset the calculator
- Error handling for invalid inputs
- GUI designed using
JFrame
andJPanel
- Run the
MyCalculator.java
file in your Java IDE. - Enter the first operand using the number buttons (0-9).
- Choose an operation (+, -, *, /) using the corresponding button.
- Enter the second operand.
- Press the equals (=) button to perform the calculation.
- To reset the calculator, click the clear button.
To contribute to this project, follow these steps:
- Fork this repository.
- Create a new branch.
- Make your changes and commit them.
- Push to your branch.
- Submit a pull request.
This project was created by Adam Alemi.