dat is the arraylist object

String [ ] data = dat.toArray( new String[dat.size()]);

Advertisements