Key Features:
- Predefined and custom currency conversions.
- Real-time exchange rate fetching using HTTP requests.
- Input validation to ensure accurate and error-free user interaction.
- Error handling for invalid inputs and API communication issues.
- Java 17: Main programming language.
- Gson: JSON parsing library for handling API responses.
- HttpClient: Java's built-in library for making HTTP requests.
To get a local copy up and running, follow these simple steps.
Ensure you have the following installed on your system:
- Java Development Kit (JDK) 17 or higher
- Maven for dependency management
- Get a free API Key at ExchangeRate API
- Clone the repository:
git clone https://github.com/your-repository/currency-converter.git
- Navigate to the project directory:
cd currency-converter - Install dependencies using Maven:
mvn install
- Build the project:
mvn package
- Run the program:
java -jar target/currency-converter.jar
- Follow the on-screen menu to select your desired conversion option.
- Enter the required details (amount and currencies) as prompted.
- View the converted amount and repeat the process as needed.
- Option 1: Convert USD to PEN.



