public void removeRange(int fromIndex,int toIndex){
  checkRange(fromIndex);
  checkRange(toIndex);
  if (fromIndex >= toIndex) {
    return;
  }
  int numtomove=size - toIndex;
  if (numtomove > 0) {
    System.arraycopy(array,toIndex,array,fromIndex,numtomove);
  }
  size-=(toIndex - fromIndex);
}

public void removeRange ( int fromIndex , int toIndex ) { checkRange ( fromIndex ) ; checkRange ( toIndex ) ; if ( fromIndex >= toIndex ) { return ; } int numtomove = size - toIndex ; if ( numtomove > 0 ) { System . arraycopy ( array , toIndex , array , fromIndex , numtomove ) ; } size -= ( toIndex - fromIndex ) ; }
removes from this list all of the elements whose index is between fromindex , inclusive and toindex , exclusive . shifts any succeeding elements to the left ( reduces their index ) .
