This is a basic calculator application developed in Java using Swing and AWT for the graphical user interface (UI). The calculator allows you to perform simple arithmetic calculations and evaluates expressions using the eval()
method from JavaScript.
- Addition, subtraction, multiplication, and division operations
- Evaluation of complex mathematical expressions
- Clear button to reset the calculator
- User-friendly and responsive UI
- Java Development Kit (JDK) installed
- Any IDE or text editor to run the Java code
- Basic knowledge of Java programming
-
Clone the repository or download the source code.
-
Open the project in your preferred IDE or text editor.
-
Build and run the Java program to launch the calculator application.
-
Use the calculator UI to perform mathematical calculations and evaluate expressions.
The calculator app does not have any external dependencies. It utilizes the built-in Java libraries for Swing, AWT, and the javax.script
package for JavaScript evaluation.




Contributions are welcome! If you have any suggestions, bug fixes, or improvements, feel free to open an issue or submit a pull request.
MIT License