You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
One of job tasks I got while looking for my first software developer position. Application made usingJava 11, OpenCSV, Maven Wrapper and Maven itself.
Conversion rates loaded from CSV file before any currency conversion calculations made; App uses OpenCSV library to parse CSV file.
Made a decent effort to write clean OOP code to my Date.now() best understanding, like separation of concerns and encapsulation of internal workings of the class to hide details from outside while providing a simple interface to work with a class and there should be no to little pain adding new functionality.
How to set up
Open terminal and use git clone command to download the remote GitHub repository to your computer:
It will create a new folder with same name as GitHub repository "job_task_currency_converter". All the project files and git data will be cloned into it. After cloning complete change directories into that new folder:
cd job_task_currency_converter
To compile the application into executable JAR run this command (uses maven wrapper):
./mvnw clean package
Or using your installed maven version:
mvn clean package
How to run
To run the program use java JRE with executable JAR file and three arguments: amountToConvert fromCurrency toCurrency(it is important that jar executed from main app dir or FileNotFound Exception will be thrown at runtime)