public static <T> T[] append(T element, T[] array) {
    return insert(element, array, count(array));
  }
public static < T > T [ ] append ( T element , T [ ] array ) { return insert ( element , array , count ( array ) ) ; }
Adds (inserts) the element to the end of the array.

@param <T> Class type of the elements stored in the array.
@param element element to insert at the end of the array.
@param array array in which to insert the element.
@return a new array with the element inserted at the end.
@throws IllegalArgumentException if the array is null.
@see #insert(Object, Object[], int)
@see #count(Object[])