📜  带索引的 java for 循环 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:18.184000             🧑  作者: Mango

代码示例1
int index = 0;
for(Element song : question) {
    System.out.println("Current index is: " + (index++));
}