I have five arrays.
int Circle_list[] = { Color.BLACK, 20, 20, 50 };
int Rect_list[] = { Color.BLUE, 80, 50, 115, 150 };
int Tri_list[] = { Color.RED, 190, 210, 150, 230, 140, 270 };
int mixColor[];
int mixCoor[];
Now, I want to add the first element(color) from Circle_list[]
, Rect_list[]
and Tri_list[]
into mixColor[]
. And add all rest numbers into mixCoor[]
.
How can I do that? Does for loop available for this?