Answers for "kotlin string to array"

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

Browse Popular Code Answers by Language