kotlin size of array
snippet in kotlin

kotlin array

user5493

val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)

kotlin size of array

user2121

arr = arrayOf(10, 20, 30, 40, 50)

// Use the size attribute
println(arr.size)