This is a simple Java-based Calculator built using Swing
for the graphical user interface (GUI). The calculator supports basic arithmetic operations such as addition, subtraction, multiplication, and division.
- User-Friendly Interface – Responsive buttons and a clean design.
- Basic Arithmetic Operations – Supports
+
,-
,*
, and/
. - Clear Function (
C
) – Resets the display and stored values. - Result Calculation (
=
) – Computes the entered mathematical expression. - Error Handling – Prevents division by zero.
- Java Swing – For the graphical user interface.
- Java AWT – For event handling and layout management.
- Clone the Repository:
git clone https://github.com/iqbolshoh/java-calculator-app.git cd java-calculator-app
- Compile the Program:
javac Calculator.java
- Run the Application:
java Calculator
- Click on the numeric buttons (
0-9
) to enter numbers. - Use arithmetic operator buttons (
+
,-
,*
,/
) to perform operations. - Press
=
to compute the result. - Click
C
to reset the calculator.
Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
I love connecting with new people and exploring new opportunities. Feel free to reach out to me through any of the platforms below:
|
|
|
|
|
|
|