Java: If there any short combination to convert array of pritive to List & receive "printable" versi

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:03 UTC
Read the original article Hit count: 301

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