Here you can find the source of getDoubleFromStr(String str)
public static Double getDoubleFromStr(String str)
//package com.java2s; public class Main { public static Double getDoubleFromStr(String str) { Double i = 0.0;// w w w . java 2 s .c om try { i = Double.valueOf(str); } catch (Exception e) { } return i; } }