读书人

迭代器的运用

发布时间: 2012-10-09 10:21:45 作者: rapoo

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

读书人网 >编程

热点推荐