首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

迭代器的运用

2012-10-09 
迭代器的使用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");
                    }
                }

热点排行