code: public static <T> T[] delete(final T[] ar, final int p) {
          final int s = ar.length - 1;
          move(ar, p + 1, -1, s - p);
          return Arrays.copyOf(ar, s);
      }
docs: Removes an array entry at the specified position.
  
  @param ar  array to be resized
  @param p   position
  @param <T> array type
  @return array