code: public int[] toArray() {
  		IntIterator i = getIntIterator();
  		final int cardinality = this.cardinality();
  		int[] answer = new int[cardinality];
  		for (int k = 0; k < cardinality; ++k)
  			answer[k] = i.next();
  		return answer;
  	}
docs: Convenience method: returns an array containing the set bits.
  
  @return array corresponding to the position of the set bits.