intList = new IntArrayList();
for (int i=0;i<newidArray.length;++i){
docid = docidIter.advance(i*10);
if (docid == DocIdSetIterator.NO_MORE_DOCS) break;
intList.add(docid);
docid = docidIter.nextDoc();
if (docid == DocIdSetIterator.NO_MORE_DOCS) break;
intList.add(docid);
}
int[] answer = new int[]{0,1,10,11,20,21,30,31,40,41,50,51,60,61,70,71,80,81,90,91};