Groovy web console

subscribe to the feed Subscribe
to this
site

Groovy comments

Published 1 week ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
//TODO: regular inline comment
/*
 * block comment
 */
/**
 * groovydoc comment
 */

def trippleDoubleQuotedString = """string start
    //TODO: inline comment inside a string block

    /* block comment inside a string block */
    /** groovydoc comment inside a string block */
string end"""

def trippleSingleQuotedString = '''string2 start
    //TODO: inline comment inside a string2 block

    /* block comment inside a string2 block */
    /** groovydoc comment inside a string2 block */
string2 end'''

println trippleDoubleQuotedString
println ''
println trippleSingleQuotedString