Thanks to visit codestin.com Credit goes to www.java2s.com
Convert from String to double
public class Main { public static void main(String[] args) throws Exception { Double d = Double.valueOf("0.9D").doubleValue(); } }