Informatica Java Transformation for replacing spaces in a string

I'm trying to implement a Java transformation in Informatica which has to do a simple task of replacing all the Spaces in an array of strings.

I've tried the following:

OriginalArray[i] = OriginalArray[i].replace("\s","");

OriginalArray[i] = OriginalArray[i].replaceAll("\s","");
but none of them replace the spaces. Kindly assist me here.

Answers

Sign In or Register to comment.