// Single line comments start with two forward slashes
/*
Multi line comments look like this.
*/
// Hello World
println "Hello world!"
/*
Variables:
You can assign values to variables for later use
*/
def x = 1
println x
x = new java.util.Date()
println x
x = -3.1499392
println x
x = false
println x
x = "Groovy!"
println x
No comments:
Post a Comment