Java Calculator App is a simple desktop calculator built with Java Swing. It provides a clean graphical interface for performing basic arithmetic โ addition, subtraction, multiplication, and division โ with a live expression display and safe division-by-zero handling.
- Features
- Installation & Usage
- Project Structure
- Technologies Used
- License
- Contributing
- Connect with Me
โ
User-Friendly Interface โ A clean 4x4 button grid with a live expression display.
โ
Basic Arithmetic โ Supports +, -, *, and /.
โ
Chained Operations โ Chain multiple operations in a row (e.g. 7 + 5 - 2).
โ
Clear Function (C) โ Resets the display and all stored values.
โ
Result Calculation (=) โ Computes the entered expression.
โ
Division-by-Zero Handling โ Returns NaN instead of crashing.
git clone https://github.com/Iqbolshoh/java-calculator-app.git
cd java-calculator-appjavac src/Calculator.javajava -cp src CalculatorOr simply open the project in IntelliJ IDEA, Eclipse, or NetBeans and run Calculator.java directly.
java-calculator-app/
โโโ src/
โ โโโ Calculator.java # Swing UI + arithmetic logic
โโโ res/
โ โโโ banner.png # Preview image
โโโ LICENSE
โโโ README.md
This project is open-source and available under the MIT License.
๐ฏ 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:
