Groovy has changed my life. At least my life as a software engineer. After many years of Java programming, I was disenchanted with the language’s restrictiveness. I delved into Ruby to find solace in dynamic languages and I found that I wasn’t exactly happy switching completely out of the Java paradigm. Especially when it came to constructing Enterprise-level applications. Well… along came Groovy… and my world has changed. Closures, Dynamic Typing and many other features that allow you to get things done quicker… and it all runs within the JVM. Brilliant…

Here are some cool examples of looping mechanisms in Groovy:

0.upto(4) { print "$it " }


0 1 2 3 4