Five Stars

String handling with -

Hey Guys,

 

I have the string "4711" in tMap. I want to transform to "47-11". Is there such Java to transform like that?

 

Thanks for your participation,

 

Best Regards,

 

 

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Twelve Stars TRF
Twelve Stars

Re: String handling with -

Hi,

Stricly based on your example, you can use the following:

StringHandling.LEFT(row6.Title1,2)+"-"+StringHandling.RIGHT(row6.Title1,2) 

TRF
1 REPLY
Twelve Stars TRF
Twelve Stars

Re: String handling with -

Hi,

Stricly based on your example, you can use the following:

StringHandling.LEFT(row6.Title1,2)+"-"+StringHandling.RIGHT(row6.Title1,2) 

TRF