public int[] toIntArray ()
    {
        int[] vals = new int[size()];
        int ii = 0;
        for (Interator it = interator(); (ii < Integer.MAX_VALUE) && it.hasNext(); ) {
            vals[ii++] = it.nextInt();
        }
        return vals;
    }
public int [ ] toIntArray ( ) { int [ ] vals = new int [ size ( ) ] ; int ii = 0 ; for ( Interator it = interator ( ) ; ( ii < Integer . MAX_VALUE ) && it . hasNext ( ) ; ) { vals [ ii ++ ] = it . nextInt ( ) ; } return vals ; }
from IntSet