A simple currency converter in Java, with API integration [ExchangeRate-API] (https://www.exchangerate-api.com/) to fetch real-time exchange rates.
This project is a practical exercise in API consumption, JSON manipulation, and flow control with switch-case.
*Conversion between the following currencies:
-Dollar (USD) β Brazilian Real (BRL)
-Chinese Yuan (RMB/CNY) β Swedish Krona (SEK)
-Brazilian Real (BRL) β Chinese Yuan (CNY)
-Brazilian Real (BRL) β Swedish Krona (SEK)
--Exchange rates automatically fetched from an external API
--Input validation and error handling
--Text-based interface in the terminal
π§° Technologies Used
##Java 17+
-Public exchange rate API (ExchangeRate-API)
-org.json library for handling JSON data
-Git for version control
##π¦ How to Run the Project
- Clone the repository:
git clone https://github.com/your-username/currency-converter.git
cd currency-converter-
Open the project in your preferred IDE (e.g., IntelliJ IDEA, Eclipse).
-
Make sure you have Java 17 or higher installed.
-
Add the org.json library to your project. You can download it here or add it via Maven/Gradle.
-
Run the CurrencyConverterMain class to start the application.