Here you can find the source of doubleToInt(double[] values)
public static int[] doubleToInt(double[] values)
//package com.java2s; public class Main { public static int[] doubleToInt(double[] values) { if (values == null) { return null; }// ww w . j av a 2 s . c o m int[] results = new int[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (int) values[i]; } return results; } }