question: protected int [ ] attributeList ( BitSet group ) { int count = 0 ; for ( int i = 0 ; i < m_numAttribs ; i ++ ) { if ( group . get ( i ) ) { count ++ ; } } int [ ] list = new int [ count ] ; count = 0 ; for ( int i = 0 ; i < m_numAttribs ; i ++ ) { if ( group . get ( i ) ) { list [ count ++ ] = i ; } } return list ; }
target:  converts a BitSet into a list of attribute indexes