1、itar 生成array for代码块
for (int i = 0; i < array.length; i++) { = array[i]; }
2、itco 生成Collection迭代
for (Iterator<String> iterator = locationUrl.iterator(); iterator.hasNext(); ) { String next = iterator.next(); }
3、iten 生成enumeration遍历
while (enumeration.hasMoreElements()) { Object nextElement = enumeration.nextElement(); }
4、iter 生成增强for循环
for (String s : locationUrl) { }
5、itit 生成iterator 迭代
while (iterator.hasNext()) { Object next = iterator.next(); }
6、itli 生成List的遍历
for (int i = 0; i < locationUrl.size(); i++) { String s = locationUrl.get(i); }
7、ittok 生成String token遍历
for (StringTokenizer stringTokenizer = new StringTokenizer(TVSOU_URL); stringTokenizer.hasMoreTokens(); ) { String s = stringTokenizer.nextToken(); }
8、itve 生成Vector数组迭代
for (int i = 0; i < vector.size(); i++) { Object elementAt = vector.elementAt(i); }
9、option+command+T [for ry等选中代码快捷生成]