Witam. Mam problem z tworzeniem BigDecimala, Eclipse wyrzuca mi Number Format Exception. Czy da się określić przyczynę na podstawie tego kodu?
for (Map.Entry<String, String> entry : dataTreeMap.entrySet())
{
String websiteSourceCode = getWebsiteSourceCode(entry.getValue());
String priceValue = getRegex(priceRegex, priceRegexFull, websiteSourceCode);
String noOfCarsValue = getRegex(noOfCarsRegex, noOfCarsRegexFull, websiteSourceCode);
String priceFixed = closeValue.replaceAll(",", "");
String noOfCarsFixed = noOfCarsValue.replaceAll(",", "");
String quantity = new String(noOfCarsFixed);
BigDecimal price = new BigDecimal(priceFixed);
int noOfCars = Integer.parseInt(quantity);
rec = new Record(price, noOfCars);
dataList.add(rec);
}