Here you can find the source of floatArrayPlusFloat(float[] xs, float y)
public static float[] floatArrayPlusFloat(float[] xs, float y)
//package com.java2s; //License from project: Apache License public class Main { public static float[] floatArrayPlusFloat(float[] xs, float y) { float[] r = new float[xs.length]; for (int i = 0; i < xs.length; ++i) { r[i] = xs[i] + y;// ww w . ja va2 s. c om } return r; } }