1. Numbers

Groovy can easily be used to calculate:

5+30
35

it even can cope with high precision since it uses BigDecimals

1024.0*1024.0*1024.0*1024.0*1024.0
1125899906842624.00000

or to display the current date and time:

new Date()
Sat Apr 30 09:12:06 CEST 2016

2. Strings

Multi-Line statements do also work:

b="binding?"
a = "hello \n"
a += "world"
hello
world
println a
a+" test binding"+b
hello
world test bindingbinding?