What is the difference between arrayof and IntArra...
# android
y
What is the difference between arrayof and IntArrayof and intArrayOf in kotlin
a
arrayOf will create an array in Kotlin without a specified type intArrayOf will create an array in Kotlin that holds Java int type elements
z
intArrayOf
will create an
int[]
(array of integer primitives), whereas
arrayOf<Int>
creates an
Integer[]
(array of boxed Integer objects)