iter 生成增强for循环
for (String arg : args) {
}
itar 生成array for
for (int i = 0; i < args.length; i++) {
String arg = args[i];
}
itco 生成Collection迭代
for (Iterator iterator = collection.iterator(); iterator.hasNext(); ) {
Object next = iterator.next();
}
itit 生成iterator 迭代
while (iterator.hasNext()) {
Object next = iterator.next();
}
itli 生成List的遍历
for (int i = 0; i < list.size(); i++) {
Object o = list.get(i);
}
fori 生成i循环
for (int i = 0; i < ; i++) {
}
网友评论