code: @Override
  	public int[] toArray(int[] a) {
  		if (a.length < size())
  			a = new int[size()];
  		IntIterator itr = iterator();
  		int i = 0;
  		while (itr.hasNext()) 
  			a[i++] = itr.next();
  		for (; i < a.length; i++)
  			a[i] = 0;
  		return a;
  	}
docs: {@inheritDoc}