Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Groovy string length

The length method of a string object in Grooy will return the number of characters in the string:

name = 'Foo Bar Moo'
len = name.length()
println(len)          // 11

hebrew = 'שלום'
println(hebrew.length())  // 4

timestamp: 2019-02-15T22:30:01 tags:

  • length