Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Calculator (Java Swing)

A modular Java Swing calculator application featuring operator precedence (PEMDAS/BODMAS) support using the Stack data structure.


Project Structure

calculator-project/
│
├── src/
│   └── com/
│       └── calculator/
│           ├── App.java                # Main entry point 
│           ├── logic/
│           │   └── Evaluator.java      # Algorithmic evaluation engine
│           └── ui/
│               └── CalculatorUI.java   # Graphical user interface components
│
└── README.md

How to Compile and Run

  1. Clone the repository / Navigate to the root directory:
cd Calculator-java-swing
  1. Open a terminal at the root of your project directory (Calculator-java-swing/).

    Make sure you have the Java Development Kit (JDK) installed on your system

  2. Create a compilation output folder:

mkdir -p bin
  1. Compile all source files:
javac -d bin src/com/calculator/App.java src/com/calculator/ui/CalculatorUI.java src/com/calculator/logic/Evaluator.java
  1. Run the application:
java -cp bin com.calculator.App

About

Java Swing Calculator A desktop application developed using Java and the Swing framework.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages