Skip to content

Iqbolshoh/java-calculator-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Java Calculator App

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.

Java License

Banner

๐Ÿ“š Table of Contents

โœจ Features

โœ… 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.

โš™๏ธ Installation & Usage

1๏ธโƒฃ Clone the repository

git clone https://github.com/Iqbolshoh/java-calculator-app.git
cd java-calculator-app

2๏ธโƒฃ Compile the program

javac src/Calculator.java

3๏ธโƒฃ Run the application

java -cp src Calculator

Or simply open the project in IntelliJ IDEA, Eclipse, or NetBeans and run Calculator.java directly.

๐Ÿ“‚ Project Structure

java-calculator-app/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ Calculator.java   # Swing UI + arithmetic logic
โ”œโ”€โ”€ res/
โ”‚   โ””โ”€โ”€ banner.png        # Preview image
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md

๐Ÿ–ฅ Technologies Used

Java Swing AWT

๐Ÿ“œ License

This project is open-source and available under the MIT License.

๐Ÿค Contributing

๐ŸŽฏ Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

๐Ÿ“ฌ Connect with Me

๐Ÿ’ฌ I love meeting new people and discussing tech, business, and creative ideas. Let's connect! You can reach me on these platforms:

Website Gmail GitHub LinkedIn Telegram WhatsApp Instagram X YouTube

About

๐Ÿงฎ A simple yet powerful Java-based calculator application built with Swing and AWT ๐Ÿ–ฅ๏ธ. It provides a user-friendly interface and supports basic arithmetic operations with error handling โž•โž–โœ–๏ธโž—.

Topics

Resources

License

Stars

8 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages