public void delete(int... indices){
  int[] idx2=indices.clone();
  if (idx2.length > 0) {
    Arrays.sort(idx2);
    for (int i=idx2.length - 1; i >= 0; i--) {
      items.remove(idx2[i]);
    }
    fireTableRowsDeleted(idx2[0],idx2[idx2.length - 1]);
  }
}

public void delete ( int ... indices ) { int [ ] idx2 = indices . clone ( ) ; if ( idx2 . length > 0 ) { Arrays . sort ( idx2 ) ; for ( int i = idx2 . length - 1 ; i >= 0 ; i -- ) { items . remove ( idx2 [ i ] ) ; } fireTableRowsDeleted ( idx2 [ 0 ] , idx2 [ idx2 . length - 1 ] ) ; } }
delete the given given entries .
