Tutorial by Topics: groovy

Groovy is is an optionally typed dynamic language for the Java Virtual Machine builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby, and Smalltalk makes modern programming features available to Java developers with an almost-zer...
Groovy evaluates conditions in if, while and for statements the same way as Java does for standard Java conditions : in Java you must provide a boolean expression (an expression that evaluates to a boolean) and the result is the result of the evaluation. In Groovy , the result is the same as in...
Groovy has more ways of looping besides supporting the Java iterations. Groovy extends the Integer class with the step(), upto() and times() methods. These methods take a closure as a parameter. In the closure we define the piece of code we want to be executed several times. It also adds each() an...
Tips for golfing in Groovy

Page 1 of 1