Here you can find the source of toDouble(String s)
public static double toDouble(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static double toDouble(String s) { double p = Double.parseDouble(s); return p; }/*w ww . j a v a 2s. c o m*/ }