Here you can find the source of toDoubleArray(final Object[] array)
public static double[] toDoubleArray(final Object[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] toDoubleArray(final Object[] array) { if (array == null) { return new double[0]; }/*ww w.ja va 2 s .c o m*/ final double[] retVal = new double[array.length]; try { for (int i = 0; i < array.length; i++) { retVal[i] = Double.parseDouble(String.valueOf(array[i])); } return retVal; } catch (Exception e) { return new double[0]; } } }