Java Array From toArray(float[] floatArray)

Here you can find the source of toArray(float[] floatArray)

Description

to Array

License

Open Source License

Declaration

public static Object[] toArray(float[] floatArray) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Object[] toArray(float[] floatArray) {
        if (floatArray == null)
            return null;
        Float[] objArray = new Float[floatArray.length];
        for (int i = 0; i < floatArray.length; i++)
            objArray[i] = Float.valueOf(floatArray[i]);
        return objArray;
    }// w  w w  .  ja v a 2s  .c om
}

Related

  1. ToArray(final Object... toSmashIntoArray)
  2. toArray(final String[] strings)
  3. toArray(final T... array)
  4. toArray(final T... items)
  5. toArray(final Throwable throwable)
  6. toArray(int arg1)
  7. toArray(int time)
  8. toArray(int value)
  9. toArray(int value, byte b[], int offset)