Groovy web console

subscribe to the feed Subscribe
to this
site

optional parameters

Published 4 weeks ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def say(msg = 'Hello', firstname = 'firstname', middleinitial, lastname = 'lastname')
{
    println "$msg $firstname $middleinitial $lastname !"
}
 
println say("greetings", "kishore")
println say("greetings", "kishore", "k")