can change value for intArray in kotlin code example
Example 1: 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
Example 2: kotlin array int
//type1
val nums = arrayOf(1, 2, 3, 4, 5)
println(Arrays.toString(nums))