Strings in groovy can be enclosed in single quotes (), double quotes (), or triple quotes (). Groovy is an object oriented language which is based on java platform. Write, compile, run and debug groovy code online.
The following example shows how when we use the statement this.x, it refers to its instance and sets the. Groovy is distributed via the. Free online groovy compiler and ide.
A groovy class is a. In order to understand the basic syntax of groovy, lets first look at a simple hello world program. Groovy 1.0 was released in january 2, 2007 with groovy 5.0.0 as the current major release. Supports debugging, code sharing, and multiple examples.
The following example will output all the lines of a text file in groovy. Groovy 1.0 was released in january 2, 2007 with groovy 2.4 as the current major release. Just like in java, groovy can access its instance members using the this keyword. This groovy tutorial is designed for aspiring developers with a need to understand the groovy in enough detail along with its simple overview and practical examples.