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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -