Source of 13.29.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0
  3: public void add(T newEntry)
  4: {
  5:    isRemoveOrSetLegal = false;

  7:    // Insert newEntry immediately before the the iterator's current position
  8:    ArrayListWithListIterator.this.add(nextIndex, newEntry);
  9:    nextIndex++;
 10: } // end add