groovy Ways of Iteration in Groovy How can I do something n times?


Example

How can I print hello world 5 times?

5.times{
    println "hello world"
}