contentToString
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
1.4Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
Deprecated
Hidden since 1.4
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.3Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
Deprecated
Hidden since 1.4
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
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
1.4Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
Deprecated
Hidden since 1.4
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
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
1.4Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
Deprecated
Hidden since 1.4
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
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
1.4Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
Deprecated
Hidden since 1.4
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.3Samples
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}