Groovy web console

subscribe to the feed Subscribe
to this
site

ng

Published 3 months ago by cng
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def name = "John"def s1 = "Hello $name" // $name will be replaced
def s2 = 'Hello $name' // $name will not be replaced
println s1
println s2
println s1.class
println s2.class

// demonstrates object references and method calls
def date = new Date()
println "We met at $date"