I\'m trying to copy the contents of my int array into an array of type double. Do I have to cast them first?
I successfully copied an array of type int to another a
System.arraycopy() can't copy int[] to double[]
System.arraycopy()
int[]
double[]
How about using google guava:
int[] a = {23,31,11,9}; //copy int[] to double[] double[] y=Doubles.toArray(Ints.asList(a));