Answers for "kotlin convert string to arraylist"

0

kotlin convert array to arrayList

arrayOf("your string","your string 2").toCollection(ArrayList())
Posted by: Guest on March-02-2020
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

Code answers related to "kotlin convert string to arraylist"

Browse Popular Code Answers by Language