Answers for "kotlin convert string to char array"

3

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

Browse Popular Code Answers by Language