public static double[] stringArrayToDoubleArray(final String[] line){
  double[] ret=new double[line.length];
  for (int i=0; i < line.length; i++) {
    ret[i]=Double.parseDouble(line[i]);
  }
  return ret;
}

public static double [ ] stringArrayToDoubleArray ( final String [ ] line ) { double [ ] ret = new double [ line . length ] ; for ( int i = 0 ; i < line . length ; i ++ ) { ret [ i ] = Double . parseDouble ( line [ i ] ) ; } return ret ; }
converts an array of strings containing doubles into an array of doubles .
