1: // Shifts entries that are beyond the entry to be removed to the
2: // next lower position.
3: // Precondition: 1 <= givenPosition < numberOfEntries;
4: // numberOfEntries is list's length before removal;
5: // checkIntegrity has been called.
6: // @author Frank M. Carrano, Timothy M. Henry
7: // @version 5.0
8: private void removeGap(int givenPosition)
9: {
10: int removedIndex = givenPosition;
11: for (int index = removedIndex; index < numberOfEntries; index++)
12: list[index] = list[index + 1];
13: } // end removeGap