I'm fairly new to Java, and am having problems in trying to convert an ArrayList containing String arrays to an array of String arrays.
I thought it would be relatively simple to do, but I keep running into problems. I've looked at all the examples I've been able to find through Google that appear to pertain to my problem, but am no further forward:sad:.
I can obtain an array of objects (each object within the array being an array of strings) using:
Object myObjectArray = my2DArListData.toArray();
where my2DArListData is my ArrayList of arrays of strings.
But how can I convert this into an array of arrays of strings? Or is there a better way that avoids the above step?
Any suggestions will be very gratefully received - I've been looking into this for hours!