join

open fun join(stringsToJoin: List<String>, separator: String): String

Joins the Strings in the given List together into a single String using the specified separator String.

Return

the concatenated String

Parameters

stringsToJoin

the List of Strings to join

separator

the String to be inserted between each element of the array


open fun join(stringsToJoin: Array<String>, separator: String): String

Joins the Strings in the given array together into a single String using the specified separator String.

Return

the concatenated String

Parameters

stringsToJoin

the array of Strings to join

separator

the String to be inserted between each element of the array