java untuk loop dengan indeks

int index = 0;
for(Element song : question) {
    System.out.println("Current index is: " + (index++));
}
Busy Batfish