content To String
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}
Returns a string representation of the contents of the specified array as if it is List.
Since Kotlin
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
assertPrints(array.contentToString(), "[apples, oranges, lime]")
//sampleEnd
}