by @saigowthamr

How to write a Hello world in Groovy

Home » groovy » How to write a Hello world in Groovy

This following example will show you how to write a hello world program in groovy.

  1. Create a new file called helloWorld.groovy.
  2. Add the below code and save it.
println 'Hello World!'
  1. In your terminal run groovy helloWorld.groovy.

It will print Hello World!.