How to print string in Groovy

2 Answers

0 votes
class Example { 
   static void main(String[] args) { 
      println "Groovy Programming"
   } 
}



/*
run:
 
Groovy Programming
 
*/

 



answered Sep 28, 2020 by avibootz
edited Jun 4, 2021 by avibootz
0 votes
class Example { 
   static void main(String[] args) { 
      String s = "Groovy Programming"
      
      println s
   } 
}



/*
run:
 
Groovy Programming
 
*/

 



answered Jun 4, 2021 by avibootz

Related questions

2 answers 502 views
502 views asked Oct 4, 2020 by avibootz
2 answers 660 views
660 views asked Oct 4, 2020 by avibootz
1 answer 303 views
1 answer 271 views
1 answer 316 views
1 answer 269 views
269 views asked Oct 2, 2020 by avibootz
...