You can use toCollection function and specify ArrayList as a mutable collection to fill:
val arrayList = intArrayOf(1, 2, 5).toCollection(ArrayList())
You can use toCollection function and specify ArrayList as a mutable collection to fill:
val arrayList = intArrayOf(1, 2, 5).toCollection(ArrayList())