for( Enumeration s = services.elements(); s.hasMoreElements(); ) { ServiceInfo info = (ServiceInfo)s.nextElement();
for( Iterator iterator = services.values().iterator(); iterator.hasNext(); ) { ServiceInfo info = (ServiceInfo)iterator.next();
        public Prober() {            // Associate the host name to this, if it needs probing            if (state == DNSState.PROBING_1) {                task = this;            }            // Associate services to this, if they need probing            for( Enumeration s = services.elements(); s.hasMoreElements(); ) {                ServiceInfo info = (ServiceInfo)s.nextElement();                if (info.getState() == DNSState.PROBING_1) {                    info.task = this;                }            }        }