Here you can find the source of ArrayFloat2Int(float[] a)
public static int[] ArrayFloat2Int(float[] a)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] ArrayFloat2Int(float[] a) { int[] ret = new int[a.length]; for (int i = 0; i < a.length; i++) { ret[i] = (int) a[i]; }//from w w w . j a va 2 s. c o m return ret; } }