[Solved] can any one give me the answer about this java loop [closed]


It’s a for-each loop.

Num is some object which implements Iterable<String> like a String[] array or a collection like for example ArrayList<String>.

The loop is executed once for each entry in that data structure. In each iteration of the loop, String Number is a different entry.

What the loop does exactly, is to read each entry from Num, parse it as an integer, and put it into the lineIndex array.

solved can any one give me the answer about this java loop [closed]