ArrayList.add

Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

@param index index at which the specified element is to be inserted @param element element to be inserted @throws IndexOutOfBoundsException {@inheritDoc}

  1. bool add(E e)
  2. void add(int index, E element)
    class ArrayList(E)
    override
    void
    add
    (
    int index
    ,)
  3. alias add = AbstractList!(E).add

Meta