Answers for "how to convert a string into array in kotlin"

3

kotlin string to array

val str = "abcd"
val array: Array<String> = str.toCharArray().map { it.toString() }.toTypedArray()
Posted by: Guest on May-20-2021

Code answers related to "how to convert a string into array in kotlin"

Browse Popular Code Answers by Language