SyntaxFix
Write A Post
Hire A Developer
Questions
You don't need to reinvent the wheel, here's the toArray() method:
toArray()
String []dsf = new String[al.size()]; al.toArray(dsf);