Groovy supports the usual while {...} loops like Java.
for loop
The for loop in Groovy is much simpler and works with any kind of array, collection, Map etc.
Note: the standard for loop is not implemented by beta-10.
closures
In addition, you can use closures in place of most for loops, using each() and eachWithIndex():
Labels