public static float[] add(float[] array, float element) {
        float[] newArray = (float[])copyArrayGrow1(array, Float.TYPE);
        newArray[newArray.length - 1] = element;
        return newArray;
    }
<p>Copies the given array and adds the given element at the end of the new array.</p>

<p>The new array contains the same elements of the input
array plus the given element in the last position. The component type of
the new array is the same as that of the input array.</p>

<p>If the input array is {@code null}, a new one element array is returned
 whose component type is the same as the element.</p>

<pre>
ArrayUtils.add(null, 0)   = [0]
ArrayUtils.add([1], 0)    = [1, 0]
ArrayUtils.add([1, 0], 1) = [1, 0, 1]
</pre>

@param array  the array to copy and add the element to, may be {@code null}
@param element  the object to add at the last index of the new array
@return A new array containing the existing elements plus the new element
@since 2.1
android/android_framework/base/src/main/java/lang3/ArrayUtils.java