java - Can I convert array of integer to List<int> or List<Integer> by Arrays.asList(array)? -


possible duplicates:
arrays.aslist() not working should?
how convert int[] list<integer> in java?

or must refactor int[] integer[] ?

  1. you can't have list<int>

  2. arrays.aslist(array); return list type t of (passed array)

you can have like

  integer[] = new integer[]{1,2,3};   list<integer> lst = arrays.aslist(a); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -