Home »
Code Examples »
Groovy Code Examples
Groovy Single-line comment Code Example
The code for Groovy Single-line comment
// Single line comment
println "hello" // the comment till the end of the line
Code by Shivang Yadav, on July 24, 2022
// Loop over the names in the list
Code by Shivang Yadav, on July 24, 2022
// this is simple println statement
println('phitran')
Code by Phitran, on March 22, 2023