Skip to main content
Close announcements banner

Calculating the length of a string

The LEN routine is easy to use, along with a tJava component, to check the length of a string:

System.out.println(StringHandling.LEN("hello world!"));

The check returns a whole number which indicates the length of the chain, including spaces and blank characters.

The result is 12 in the Run view.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!