size
Returns the number of elements in the array.
Since Kotlin
2.1Samples
import kotlin.concurrent.atomics.*
fun main() {
//sampleStart
val a = AtomicIntArray(intArrayOf(1, 2, 3, 4, 5))
println(a.size) // 5
//sampleEnd
}
Returns the number of elements in the array.
import kotlin.concurrent.atomics.*
fun main() {
//sampleStart
val a = AtomicIntArray(intArrayOf(1, 2, 3, 4, 5))
println(a.size) // 5
//sampleEnd
}
Thanks for your feedback!