Java Array Fill fillArray(float filling, int length)

Here you can find the source of fillArray(float filling, int length)

Description

fill Array

License

CeCILL license

Declaration

public static float[] fillArray(float filling, int length) 

Method Source Code

//package com.java2s;
//License from project: CeCILL license 

public class Main {
    public static float[] fillArray(float filling, int length) {
        float[] fArray = new float[length];
        for (int i = 0; i < length; i++) {
            fArray[i] = filling;//from w  ww  . j  a  v  a  2  s  . c o  m
        }
        return fArray;
    }
}

Related

  1. fillArray(byte[] btArray, byte[] btValue, int iStartPosition, int iLength, byte btAlternateValue, int iAlign)
  2. fillArray(byte[] data)
  3. fillArray(char[] array, int offset, char value)
  4. fillArray(double[][][] array, double[] value, int rows, int columns)
  5. fillArray(final float[] array, final float value)
  6. fillArray(float[] batchVertices, float f)
  7. fillArray(int arrayLength)
  8. fillArray(int min, int max)
  9. fillArray(int size, Float value)