Hi there,
I'm having a rather bad morning today and my brain is being stupid. I have an ArrayList containing String Arrays. How do I convert my ArrayList to a 2D Array?
What I have:
ArrayList<String[]> transactionList = new ArrayList<String[]>();
String[] resultSetRow = {"String1","String2","String3","String4","String5"};
int resultsSetRowSize = resultSetRow.length;
for(int n = 0; n < resultsSetRowSize; n++){
transactionList.add(resultSetRow[n]);
}
//How to convert transactionList to Array[][] ?
Thanks in advance!