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 512 views
512 views asked Oct 4, 2020 by avibootz
2 answers 667 views
667 views asked Oct 4, 2020 by avibootz
1 answer 307 views
1 answer 274 views
1 answer 320 views
1 answer 273 views
273 views asked Oct 2, 2020 by avibootz
...