println "hello World"
nothing more than this.
make it more complicate
def hello="hello"Put this in a file hello.groovy
println hello+" " +world
println "$hello $world"
groovy hello.groovySo nice feature,
no $ (only in the strings)
no () after the function println, as long, as all is cllear enough
And the "def" gives a little more clarity,
other than in PHP,where every varibale, you write $abc or $abd
are varibales implizit declared.