code: public boolean remove(final T element) {
      for (int i = 0; i < this.size; i++)
        if (this.elements[i].equals(element)) {
          System.arraycopy(this.elements, i + 1, this.elements, i, this.size - (i + 1));
          this.size--;
          return true;
        }
      return false;
    }
docs: Removes the first occurrence of a given element from the vector (the element is compared by {@code equals}.
  @param element the element to remove
  @return {@code true} if the element was removed, {@code false} if the element was not in the vector