Possible Duplicate:
Convert ArrayList<String> to String []
How do I convert an ArrayList to a String[]?
For example, my ArrayList is
arrlist=[audio,video,song,tech]
I want to convert it to a String[] like this:
String[] data;
data={ "audio","video","song","tech"};
My issue is that ArrayList data can be changed dynamically, but I would like a return format in a finite sized array.