Groovy Examples

Hello World

print 'hello world' //result: hello world

Hello World Function

void printWithNewLine(String args){
    print args + "\n"
}
printWithNewLine('hello world') //result: hello world

Leave a Reply

Your email address will not be published. Required fields are marked *