Here you can find the source of addArrays(float[] arr1, float[] arr2, float[] arr3)
public static float[] addArrays(float[] arr1, float[] arr2, float[] arr3)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] addArrays(float[] arr1, float[] arr2, float[] arr3) { int l = arr1.length; float[] res = new float[l]; for (int i = 0; i < l; i++) { res[i] = arr1[i] + arr2[i] + arr3[i]; }/*ww w .ja v a 2s. c o m*/ return res; } public static float[] addArrays(float[] arr1, float[] arr2) { int l = arr1.length; float[] res = new float[l]; for (int i = 0; i < l; i++) { res[i] = arr1[i] + arr2[i]; } return res; } }