Concatenate several columns Java Snippet

Hi everyone, 

 

I have four columns that I want to concatenate, the list of columns are: 

FIRST COLUMN

SECOND COLUMN

THIRD COLUMN

FOURTH COLUMN 

What I want is: 

THIRD COLUMN[space]FOURTH COLUMN[coma][space]FIRST COLUMN[space]SECOND COLUMN

For instance the first row of each column has a value of: 

FIRST COLUMN = FIRST 

SECOND COLUMN =SECOND 

THIRD COLUMN = THIRD 

FOURTH COLUMN = FOURTH

then I want to have: 

THIRD FOURTH, FIRST SECOND 

I think it should be done with the Java Snippet node. 

Thank you

 

 

 

 

 

 

 

 

 

 

Actually I think with String Manipulator this is easier to perform, but with Java Snippets it is not hard either. What have you tried? Where did you get stuck?

Cheers, gabor

PS.: With String Manipulator:

join($THIRD COLUMN$, " ",$FOURTH COLUMN$, ", " $FIRST COLUMN$, " ",$SECOND COLUMN$)

Thank you Gabor, that solved my problem 

Regards

Mau