A console-based Currency Converter built using Java with a clean OOP design.
This beginner-friendly project supports multiple currencies, uses enum for currency codes, and allows repeated conversions using loops.
Ideal for Java beginners, college mini-projects, and OOP practice.
β Supports multiple currencies
β Uses enum for currency codes
β Static exchange rates (base: INR)
β Loop-based multiple conversions
β Input validation with exception handling
β Clean and readable OOP-style code
- INR β Indian Rupee (Base)
- USD β US Dollar
- EUR β Euro
- GBP β British Pound
- JPY β Japanese Yen
- AUD β Australian Dollar
- CAD β Canadian Dollar
enumHashMap- Static block
- Loops (
do-while) - Exception handling
Scannerinput- Method abstraction
- User selects source and target currencies
- Enters the amount to convert
- Amount is converted using static INR-based exchange rates
- User can repeat conversions until exit
Currency Converter (Static Rates)
Available Currencies:
INR USD EUR GBP JPY AUD CAD
Enter source currency: USD
Enter target currency: JPY
Enter amount: 50
Converted Amount: 7291.67 JPY
Do you want to convert again? (y/n): y
- CurrencyConverter.java
- Compile the program:
javac CurrencyConverter.java
- Run the program:
java CurrencyConverter
-
Store exchange rates in a JSON file
-
Menu-driven UI
-
Swing / JavaFX GUI
-
API-based live exchange rates