Ayden
01/17/2018, 6:14 AMgildor
01/17/2018, 6:15 AMAyden
01/17/2018, 6:16 AMArrayList<Int>
, Array<Int>
and IntArray
?cedric
01/17/2018, 6:20 AMIntArray
is a more optimized version of Array<Int>
. Both are arrays. ArrayList<Int>
is a list backed by an array.cedric
01/17/2018, 6:20 AMlistOf()
(or arrayListOf()
if you need a mutable list)StavFX
01/17/2018, 6:21 AMShow Kotlin Bytecode
action. You can then Hit the Decompile button and see the Java equivalent of your Kotlin code to see the result yourselfgildor
01/17/2018, 6:22 AMStavFX
01/17/2018, 6:24 AMclass Arr(val a1: Array<Int>,
val a2: ArrayList<Int>,
val a3: IntArray)
The decompiled kotlin bytecode will look like
.....
@NotNull
private final Integer[] a1;
@NotNull
private final ArrayList a2;
@NotNull
private final int[] a3;
...
Ayden
01/17/2018, 7:21 AMAyden
01/17/2018, 7:21 AMShawn
01/17/2018, 7:23 AMAyden
01/17/2018, 7:23 AMAyden
01/17/2018, 7:23 AMShawn
01/17/2018, 7:24 AM