Replacing an element in a string - 7.1

Talend Real-time Big Data Platform Studio User Guide

EnrichVersion
7.1
EnrichProdName
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Design and Development

It is easy to use the CHANGE routine along with a tJava component, to replace one element in a string with another:

System.out.println(StringHandling.CHANGE("hello world!", "world", "guy"));

The routine replaces the old element with the new element specified.