Here you can find the source of toDouble(int[][] arr)
public static double[][] toDouble(int[][] arr)
//package com.java2s; //License from project: Apache License public class Main { public static double[][] toDouble(int[][] arr) { double[][] ret = new double[arr.length][arr[0].length]; for (int i = 0; i < arr.length; i++) { for (int j = 0; j < arr[i].length; j++) ret[i][j] = arr[i][j];//from w w w .ja v a 2 s.c om } return ret; } }