Iterator it = keys.iterator ();
Iterator<SelectionKey> it = keys.iterator ();
  private final int[] getFDsAsArray (int ops)  {    int[] result;    int counter = 0;    Iterator it = keys.iterator ();    // Count the number of file descriptors needed    while (it.hasNext ())	    {        SelectionKeyImpl key = (SelectionKeyImpl) it.next ();        if ((key.interestOps () & ops) != 0)          {            counter++;          }	    }    result = new int[counter];    counter = 0;    it = keys.iterator ();    // Fill the array with the file descriptors    while (it.hasNext ())	    {        SelectionKeyImpl key = (SelectionKeyImpl) it.next ();        if ((key.interestOps () & ops) != 0)          {            result[counter] = key.getNativeFD();            counter++;          }          }    return result;	    }