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
String[] values = new String[arrayList.size()]; for (int i = 0; i < arrayList.size(); i++) { values[i] = arrayList.get(i).type; }