code: public void remove(int idx) {
          size--;
          System.arraycopy(data, idx + 1, data, idx, size - idx);
      }
docs: Removes an element from the List. All following elements
  are moved down by one index.
  @param  idx  index of the element to remove