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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -