How do you set an ArrayList of integers[] equal to an ArrayList of doubles[]?
I tried a lot of different things but none of them worked. I'm sure there is a really simple answer to this problem but I could not find it on google thanks.
Im coding in Java
I tried this
drawablerect = (ArrayList int[]) rect;
And setting each array in drawables to each array in rect.
drawablerect is an ArrayList of int[] and rect is a ArrayList of double[]
This is what I did
for(int i = 0; i < rect.size(); i++)
for(int index = 0; index < 7; index++)
drawablerect.get(i)[index] = (int) rect.get(i)[index];