Replacing an element in a string - 7.1

Talend Big Data Studio User Guide

Version
7.1
Language
English (United States)
Product
Talend Big Data
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.