arrays - How to convert an int[] into an List<Integer> in Android? -
it seems simple matter; have int[]
prepopulate @ initialization, want convert list<integer>
, doesn't work:
int[] activities = {0,1,2}; list<integer> acta = arrays.aslist(activities);
arrays.aslist()
wants make list<int[]>
instead, , don't understand why. how make list<integer>
out of int[]
?
change int
integer
integer[] activities = {0,1,2};
Comments
Post a Comment