public int[] updateRemainingAttributes(int[] selectedAttributes,int bestAttribute){
  int[] remainingAttributes;
  if (columnTable.representsNominalAttribute(bestAttribute)) {
    remainingAttributes=removeAttribute(bestAttribute,selectedAttributes);
  }
 else {
    remainingAttributes=selectedAttributes;
  }
  return remainingAttributes;
}

public int [ ] updateRemainingAttributes ( int [ ] selectedAttributes , int bestAttribute ) { int [ ] remainingAttributes ; if ( columnTable . representsNominalAttribute ( bestAttribute ) ) { remainingAttributes = removeAttribute ( bestAttribute , selectedAttributes ) ; } else { remainingAttributes = selectedAttributes ; } return remainingAttributes ; }
if the bestattribute is nominal , its number is removed from the selectedattributes , otherwise it stays the same .
