o turn a string into a double code example
Example 1: java string to double
Double d = Double.valueOf(String str);
Example 2: transformer un string en double java
String doubleAsString = "23.23";
BigDecimal price = new BigDecimal(doubleAsString);
BigDecimal total = price.plus(anotherPrice);