迭代器的运用

迭代器的使用EnumerationExecutionGroupProxy allExGroInThisBro bro.getExecutionGroups(null)if (a

迭代器的使用
Enumeration<ExecutionGroupProxy> allExGroInThisBro = bro
                        .getExecutionGroups(null);
                if (allExGroInThisBro.hasMoreElements())
                {
                    while (allExGroInThisBro.hasMoreElements())
                    {

                        ExecutionGroupProxy thisEg = allExGroInThisBro
                                .nextElement();
                        listExgs.add(thisEg);
                        logger.debug("hold the [" + thisEg.getName()
                                + "] increase to ListExgs array");
                    }
                }