kotlin convert string to arraylist code example
Example 1: kotlin convert string to arraylist
val str = "abcd"
val array: Array<String> = str.toCharArray().map { it.toString() }.toTypedArray()
Example 2: kotlin convert array to arrayList
arrayOf("your string","your string 2").toCollection(ArrayList())