Here you can find the source of combineArrays(float[]... arrays)
public static float[] combineArrays(float[]... arrays)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] combineArrays(float[]... arrays) { int size = arrays[0].length; float[] result = new float[arrays.length * arrays[0].length]; for (int i = 0; i < arrays.length; i++) { for (int j = 0; j < size; j++) { result[i * size + j] = arrays[i][j]; }// ww w .ja v a 2s . co m } return result; } }