code: public static <T> T[] remove(final T[] a, final Object element) {
          if (N.isNullOrEmpty(a)) {
              return a;
          }
  
          int index = indexOf(a, 0, element);
  
          return index == INDEX_NOT_FOUND ? a.clone() : delete(a, index);
      }
docs: <p>
  Removes the first occurrence of the specified element from the specified
  array. All subsequent elements are shifted to the left (subtracts one
  from their indices). If the array doesn't contains such an element, no
  elements are removed from the array.
  </p>
  
  <p>
  This method returns a new array with the same elements of the input array
  except the first occurrence of the specified element. The component type
  of the returned array is always the same as that of the input array.
  </p>
  
  @param a
  @param element
  the element to be removed
  @return A new array containing the existing elements except the first
  occurrence of the specified element.