Dominaezzz
04/28/2019, 1:32 PMList<T>
or Array<T>
?louiscad
04/28/2019, 3:26 PMArray
is always mutable but its size is fixed. List
is read-only, but if it's backed by a MutableList
, or another implementation that can change, its size and content may change.
The simple answer is to use List
.Dominaezzz
04/28/2019, 3:27 PMlouiscad
04/28/2019, 3:30 PMDominaezzz
04/28/2019, 3:31 PMList<T>
or Array<T>
.louiscad
04/28/2019, 3:31 PMDominaezzz
04/28/2019, 3:33 PMlouiscad
04/28/2019, 3:38 PMArray
, otherwise, use List
.Dominaezzz
04/28/2019, 3:40 PMmyanmarking
05/03/2019, 3:44 PM