Groovy string length
The length method of a string object in Grooy will return the number of characters in the string:
examples/groovy/length.gvy
name = 'Foo Bar Moo' len = name.length() println(len) // 11 hebrew = 'שלום' println(hebrew.length()) // 4

Published on 2019-02-15
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post