Here you can find the source of convertdoubleToDouble(double[][] dbleArray)
Parameter | Description |
---|---|
dbleArray | a parameter |
public static Double[][] convertdoubleToDouble(double[][] dbleArray)
//package com.java2s; //License from project: Open Source License public class Main { /**// ww w . j a v a2s .c o m * Converts a double array to a Double array. * * @param dbleArray * @return - Double array of values */ public static Double[][] convertdoubleToDouble(double[][] dbleArray) { Double[][] dblArrayToReturn = new Double[dbleArray.length][2]; if (dbleArray != null) { for (int i = 0; i < dbleArray.length; i++) { int j = 0; dblArrayToReturn[i][j] = dbleArray[i][j]; dblArrayToReturn[i][j + 1] = dbleArray[i][j + 1]; } } return dblArrayToReturn; } }