kotlin setup an array code example
Example 1: kotlin create array with values
val numbers: IntArray = intArrayOf(10, 20, 30, 40, 50)
Example 2: how to make array in kotlin
val num = arrayOf(1, 2, 3, 4) //implicit type declaration
val num = arrayOf<Int>(1, 2, 3) //explicit type declaration