This is a simple Java-based Calculator built using Swing
๐๏ธ for the graphical user interface (GUI). The calculator supports basic arithmetic operations โโโ๏ธโ.
โ
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 โโ0.
๐น Java Swing โ For the graphical user interface ๐ฅ๏ธ.
๐น Java AWT โ For event handling and layout management โก.
1๏ธโฃ Clone the Repository ๐:
git clone https://github.com/iqbolshoh/java-calculator-app.git
cd java-calculator-app
2๏ธโฃ Compile the Program ๐ง:
javac Calculator.java
3๏ธโฃ 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 meeting new people and discussing tech, business, and creative ideas. Letโs connect! You can reach me on these platforms: