Showing posts with label groovy evaluate expressions. Show all posts
Showing posts with label groovy evaluate expressions. Show all posts

Sunday, 13 January 2019

Evaluate expressions using groovy command


By using -e options, you can evaluate the expressions.

Example
groovy -e "print \"Sum of 10 and 20 is ${10 + 20}\""



Previous                                                 Next                                                 Home