Java tutorial
//package com.java2s; public class Main { /** * converts Double to double.* * * @param array * the array * @return the double[][] */ public static double[][] Doubletodouble(Double[][] array) { double[][] nArray = new double[array.length][]; int i = 0; for (Double[] row : array) { double[] newRow = new double[row.length]; int j = 0; for (Double d : row) { newRow[j] = d.doubleValue(); j++; } nArray[i] = newRow; i++; } return nArray; } }