split() Function
The split() function splits this char sequence to a list of strings around occurrences of the specified delimiters.
Syntax:
fun CharSequence.split(
vararg delimiters: String,
ignoreCase: Boolean = false,
limit: Int = 0
): List<String>
Kotlin program to demonstrate the example of split() function
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer