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
Here is the solution for you given scenario -
Listls = new ArrayList(); ls.add("dfsa#FSDfsd"); ls.add("dfsdaor#ooiui"); String[] firstArray = new String[ls.size()]; firstArray =ls.toArray(firstArray); String[] secondArray = new String[ls.size()]; for(int i=0;i