I have data in the format
List<Object[]> data = new ArrayList<Object[]>();
for(Something s : SomeList) {
Object[] tempList = { s.test, s.test2, s.test3 };
data.add(tempList);
}
So I have an ArrayList of Objects[]. Now I want to get that ArrayList of objects into an Object[][] so I have the data in the format
Object[][] data = { { test, test2, test3 }, { test4, test5, test6 } };
but I'm not sure how to do that.
The ArrayList step isn't important, it's just the direction I took when trying to figure it out. If you have a better way of getting the data to Object[][] that's great.
for(Something s : someList)iterates over each item in a List or Array.s.testands.test2represent the properties of each successive item in the list.