Populate dataTable with a 2 dimensional Arraylist
This might be really easy but I'm having problems populating a dataTable with a two dimensional ArrayList. My ArrayList contains some arrays I dynamically created. e.g.
String[] row1 = {"time1", "count1"};
String[] row2 = {"time2", "count2"};
String[] row3 = {"time3", "count3"};
...
myArrayList = new ArrayList();
myArrayList.add(Arrays.asList(row1));
myArrayList.add(Arrays.asList(row2));
myArrayList.add(Arrays.asList(row3));
I need to be able to display the ArrayList in a dataTable
e.g. dataTable.setValue(myArrayList);
Could someone help me. I usually develop in .Net and I'm not completely familiar with web app development in Java.
Thanks.

