I have an ArrayList with values like \"abcd#xyz\" and \"mnop#qrs\". I want to convert it into an Array and then split it with # as delimiter and have abcd,mnop in an array a
You don't need to reinvent the wheel, here's the toArray() method:
toArray()
String []dsf = new String[al.size()]; al.toArray(dsf);