Java.lang.NumberFormatException error: empty string- Exchange Rate application
问题 I'm writing a program which gets daily exchange rates from http://www.tcmb.gov.tr/kurlar/today.xml and saves them to the List. Here is my code: public class ParseTheXml { private List<CurrencyPojo> currencyList; public void setCurrencyList(List<CurrencyPojo> currencyList) { this.currencyList = currencyList; } public List<CurrencyPojo> getCurrencyList() throws ParserConfigurationException { currencyList = new ArrayList<CurrencyPojo>(); try { DocumentBuilder builder = DocumentBuilderFactory