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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -