Answers for "convert array string to array 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 "convert array string to array kotlin"

Browse Popular Code Answers by Language