Here you can find the source of toDoubles(int[][] intPts)
public static double[][] toDoubles(int[][] intPts)
//package com.java2s; //License from project: Open Source License public class Main { public static double[][] toDoubles(int[][] intPts) { int nDimensions = intPts[0].length; double[][] pts = new double[intPts.length][nDimensions]; for (int i = 0; i < intPts.length; i++) { for (int n = 0; n < nDimensions; n++) { pts[i][n] = ((Integer) intPts[i][n]).doubleValue(); }//from w w w . j av a2 s. co m } return pts; } }