Java: Is there any short combination to convert array of primitive to List & receive "printable" ver

Posted by blackliteon on Stack Overflow See other posts from Stack Overflow or by blackliteon
Published on 2010-03-30T08:01:01Z Indexed on 2010/03/30 8:13 UTC
Read the original article Hit count: 408

Filed under:
|
int[] arrc = new int[] {1, 2, 3};
System.out.println(new ArrayList(Arrays.asList(arrc)));

prints address, but i desire to use toString as in ArrayList.

Is it possible ?

© Stack Overflow or respective owner

Related posts about java

Related posts about array