Skip to content
Reference > Methods

strJoin(delimiter,data)

Definition

String strJoin(String delimiter, Collection data)

Description

Concatenates all of the data in the list into a single delimited string, returns that string.

Parameter Definition

Name Type Description
delimiter String The Delimiter
data Collection the List to concatenate

Examples

1
2
3
4
String r1 = strJoin(",",new List("what", "now")); // r1 == what,now
String r2 = strJoin(";",new List("what", null, 742.4D)); // r2 == what;null;742.4
Object r3 = strJoin(null,new List("what", null, "now")); // r3 == null
Object r4 = strJoin(null,new Set("what", "now")); // r4 == null