Following example illustrate the simplest Hello World
in groovy using script, place the following code snippet in a file, say helloWorld.groovy
println 'Hello World!'
How to execute:
In the command line, groovy helloWorld.groovy
Output:
Hello World!