String.concat()

Signature

String concat (String s1, String s2)

Domain

action, condition

Description

Concatenates the two argument strings and returns the resulting String.

Parameters

NameTypeDescription
s1StringA String to concatenate.
s2StringA second String to concatenate.

Returns

TypeDescription
StringThe result of concatenating the two argument strings.

Cautions

none

Example


String result = String.concat ("This is a test", " of concatenation");

Result is:
result contains: "this is a test of concatenation"