I have a dynamic list of list defined by
List<List<String>> listOfLists = new ArrayList<List<String>>();
like:
[[A, B, C, D], [E, F, G, H]]
in this example it has 2 group of 4 items each but it can have 1 group to n groups dynamically.
Now, I need a 2-dimensional string, so something like:
String[][] data ={{"A", "B", "C", "D"}, {"E", "F", "G", "H"}}
exist a way to convert it easily? If not, how can I create dynamically a 2-dimension String where I know the number of column but not the rows?