Java Float Array Convert floatArrayPlusFloat(float[] xs, float y)

Here you can find the source of floatArrayPlusFloat(float[] xs, float y)

Description

float Array Plus Float

License

Apache License

Declaration

public static float[] floatArrayPlusFloat(float[] xs, float y) 

Method Source Code

//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;
    }
}

Related

  1. floatArray2Json(float[] array)
  2. floatArrayToDouble(float[] from)