java - How to convert an int[] array to a List? -


i expected code display true:

int[] array = {1, 2}; system.out.println(arrays.aslist(array).contains(1)); 

the arrays.aslist(array) result in singleton list of int[].

it works expect if change int[] integer[]. don't know if helps though.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -