Loops using arrays

Hello,

In the Processing software menu select File > Preferences…
And check the box for Continuously check for errors and Show Warnings:

When I ran your code it had some obvious errors that you could have easily corrected.

First error:

And so on…

:)