Here you can find the source of toDouble(String str)
public static double toDouble(String str)
//package com.java2s; //License from project: LGPL public class Main { public static double toDouble(String str) { try {//ww w .java 2s.c o m return Double.parseDouble(str); } catch (Exception e) { } return 0.0d; } }