Calculating the length of a string - 8.0

Talend Real-Time Big Data Platform Studio User Guide

Version
8.0
Language
English (United States)
EnrichDitaval
Real-Time Big Data Platform
Product
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development

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.