Here you can find the source of convertIntToFloat(int arr[])
public static float[] convertIntToFloat(int arr[])
//package com.java2s; /*/*from ww w . j ava 2 s .c o m*/ * Copyright 2005, 2009 Cosmin Basca. * e-mail: cosmin.basca@gmail.com * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * Please see COPYING for the complete licence. */ public class Main { public static float[] convertIntToFloat(int arr[]) { float array[] = new float[arr.length]; for (int i = 0; i < array.length; i++) array[i] = arr[i]; return array; } }