public boolean removeOption(T option){
  int idx=options.indexOf(option);
  if (idx >= 0) {
    options.remove(idx);
    double w=weights.removeAt(idx);
    weightSum-=w;
    return true;
  }
 else {
    return false;
  }
}

public boolean removeOption ( T option ) { int idx = options . indexOf ( option ) ; if ( idx >= 0 ) { options . remove ( idx ) ; double w = weights . removeAt ( idx ) ; weightSum -= w ; return true ; } else { return false ; } }
removes an option from the choice set .
