ArrayList<Level> myLevel question
in
Programming Questions
•
10 months ago
Hi all,
I don't know why this int val = it.nextIndex() is not working, it says "The function nextIndex does not exist." I don't have idea why. Can you help me?
void draw() {
background(50);
Iterator<Level> it = myLevel.iterator();
while (it.hasNext ()) {
int val = it.nextIndex();
Level oneLevel = it.next();
println(val);
//oneLevel.display(randomNumbers[it.nextIndex()-1]);
}
}
1