return indexOf(elem, 0);
for (int i = index; i < elementCount; i++) { if (e == null ? elementData[i] == null : e.equals(elementData[i])) return i; } return -1;
  public int indexOf(Object elem)  {    return indexOf(elem, 0);  }