Simple Currency Converter using Java

In this example, I am attaching simple program about, How to write Simple Currency Converter using Java Program. The program was written using Fixer Currency Converter Webservice.

Project Structure

Simple Currency Converter using Java

Note : In this example, I am using Gson 2.8.0 API to convert JSON to Object in Java. you can download API from here

CurrencyConversionResponse.java

CurrencyConvertor.java

Output

What is your currency code ?
USD
Enter the Amount :
600
Enter the Currency Code that you want to covert :
INR
Hi, The 600.0 USD is equivalent to 41105.4 INR today.

Download Source Code

Download Here

References

1. Fixer Currency Converter API
2. GSON JavaDocs