Looping over an Array

From Progzoo
Jump to: navigation, search

You can iterate over an array with a for loop.

Access the array from first to last

The index must go from 0 to x.length-1


[Font] [Default] [Show] [Resize] [History] [Profile]

Access the array from last to first

The index must go from x.length-1 to 0


[Font] [Default] [Show] [Resize] [History] [Profile]