public interface LoopBody
| Modifier and Type | Method and Description |
|---|---|
void |
run(int i)
This method contains the code inside the for-loop, as in a native
for-loop like this:
|
void run(int i) throws java.lang.Exception
for (int i = start; i < end; i += increment) {
// loop body
}
i - the current loop countjava.lang.Exception - any exception thrown during execution