Combines the value of the String object with the parameters and returns the newly formed string; the original value of the String object is unchanged.
Syntax
Parameters
returns
The result of the concat method is equivalent to:
result = StringObj + value_1 + ... + value_n
Example
s0 = "This is an "; s1 = "example for "; s2 = "String.concat"; r = s0.concat(s1, s2); //r = "This is an example for String.concat";