Answers for "android kotlin convert 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

Code answers related to "android kotlin convert string to array"

Browse Popular Code Answers by Language