Converting Array to ArrayList not working
706771Oct 11 2010 — edited Oct 11 2010Dear Members :
Following line fails to convert my array to arraylist:
List myArrayList = Arrays.asList(myArray);
bcoz when I do
System.out.println("ArrayList: "+myArrayList);
it returns [[I@3e25a5]. The array is just a standard array: int[] myArray.
I even tried with: List myArrayList = new ArrayList(Arrays.asList(myArray)); but same.
Could you please suggest a solution to this ?
Thanks in advance.
Atanu