public boolean remove(int position){
  if (position >= 0 && position < mRecords.size()) {
    mRecords.remove(position);
    if (mRecords.size() == 0) {
      mCurrentPosition=-1;
    }
 else     if (mCurrentPosition >= mRecords.size()) {
      mCurrentPosition--;
    }
    notifyObservers();
    return true;
  }
  return false;
}

public boolean remove ( int position ) { if ( position >= 0 && position < mRecords . size ( ) ) { mRecords . remove ( position ) ; if ( mRecords . size ( ) == 0 ) { mCurrentPosition = - 1 ; } else if ( mCurrentPosition >= mRecords . size ( ) ) { mCurrentPosition -- ; } notifyObservers ( ) ; return true ; } return false ; }
remove the row at the passed position from the cursor if exists .
