Replacing an element in a string - Cloud

Talend Cloud API Services Platform Studio User Guide

Version
Cloud
Language
English (United States)
EnrichDitaval
API Services Platform
Product
Talend Cloud
Module
Talend Studio
Content
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.