In my program I have taken two arrays one is
String[] array another is int[] array .When I convert these two arrays into List through Arrays.asList().
But list which is created from int[] has the size that is not equal to the array length,but the that is created from String[] has the same size as the length of the String[].Why the size of the list that is created from int[] array is one?
prints
Length of the arr=10
Elements in th list =1
***********************
length of the array =5
Elements in the list =5