Answers for "convert string to list kotlin"

3

kotlin convert string to arraylist

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