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
Worth mentioning that in this day and age, Java 8 offers an elegant one-liner to do this without the need to use third-party libraries:
int[] ints = {23, 31, 11, 9}; double[] doubles = Arrays.stream(ints).asDoubleStream().toArray();