This is a basic calculator application built in Java using Swing GUI library. It performs simple arithmetic operations such as addition, subtraction, multiplication, and division.
- Addition
- Subtraction
- Multiplication
- Division
- Decimal point support
- Change sign (+/-)
- Clear input
- Delete single character
- Perform calculations with continuous input
- Clone the repository:
git clone https://github.com/MonikaSturman/calculator.git
- Compile the source code:
javac Calculator.java
- Run the application:
java Calculator
- Use the buttons to perform calculations:
- Use number buttons to input digits.
- Use arithmetic operation buttons to perform calculations.
- Use "Delete" button to delete the last entered digit.
- Use "Clear" button to clear the input.
- Use "(-)" button to change the sign of the current input.
- Use "=" button to perform the calculation.