contentToString
Deprecated
Use Kotlin compiler 1.4 to avoid deprecation warning.
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
1.1Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}