1String text = "12.34"; // example String
2double value = Double.parseDouble(text);
1String number = "123,321";
2double value = Double.parseDouble( number.replace(",",".") );
1String doubleAsString = "23.23";
2BigDecimal price = new BigDecimal(doubleAsString);
3BigDecimal total = price.plus(anotherPrice);
1double total = Double.parseDouble(jlbTotal.getText());
2double price = Double.parseDouble(jlbPrice.getText());