diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d136d78..9653332 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -56,8 +56,8 @@ - - + + @@ -658,12 +658,12 @@ - - + + diff --git a/src/main/java/com/easycurrency/EasyCurrency.java b/src/main/java/com/easycurrency/EasyCurrency.java index 535a977..65d6476 100644 --- a/src/main/java/com/easycurrency/EasyCurrency.java +++ b/src/main/java/com/easycurrency/EasyCurrency.java @@ -20,7 +20,7 @@ public class EasyCurrency { public static double convertCurrency(String from, String to) { String API_ENDPOINT="https://free.currencyconverterapi.com/api/v5/convert?q="; - String reqString = from + "_" + to.toUpperCase(); + String reqString = (from + "_" + to).toUpperCase(); HttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(API_ENDPOINT + reqString + "&compact=ultra");