How to flatten 2D array to 1D array?
Posted
by Jessy
on Stack Overflow
See other posts from Stack Overflow
or by Jessy
Published on 2010-04-02T21:26:13Z
Indexed on
2010/04/02
21:33 UTC
Read the original article
Hit count: 303
How can I flatten the 2 dimensions array int originalArray[][]
to 1 dimension array?
int a [] = {1,2,6,7,2};
int b [] = {2,44,55,2};
int c [] = {2,44,511,33};
int originalArray [][] = new array[][]{a,b,c};
© Stack Overflow or respective owner