A simple console-based Calculator built using Java. This project performs basic arithmetic operations through a menu-driven interface and demonstrates core Java programming concepts.
- ➕ Addition
- ➖ Subtraction
- ✖️ Multiplication
- ➗ Division
- Even Odd check
- Currency converter IND-USD
- MIN/MAX number checker
- 🧮 Remainder (Modulus)
- 📋 Menu-Driven Program
- 🔁 do-while Loop
- 🔀 switch-case
⚠️ Exception Handling- ✅ Input Validation
- Java Methods
- Scanner Class
- Conditional Statements (
if,switch) - Loops (
do-while) - Exception Handling (
try-catch-finally) ArithmeticExceptionInputMismatchException
- Java
- JDK 17+ (or any compatible version)
Calculator.java
README.md
- Clone the repository
git clone https://github.com/AmanBarbate/Java-Calculator.git-
Open the project in your IDE (VS Code, IntelliJ IDEA, or Eclipse).
-
Compile the program
javac Calculator.java- Run the program
java Calculator========== JAVA CALCULATOR ==========
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Remainder
6. Exit
Enter your choice: 1
Enter first number: 20
Enter second number: 30
Result = 50
- Scientific Calculator
- Power and Square Root Operations
- Calculation History
- GUI Version using Java Swing or JavaFX
- File Storage for History
Aman
Learning Java and building projects to improve problem-solving and software development skills.
⭐ If you found this project useful, consider giving it a star.
