I have a ArrayList that contains values in the form [ann,john]. I want to convert this ArrayList into a String array in the form {\"ann\",\"john\"}.
How should I do
You can try this code
String[] stringA = new String[stringArrayList.size()]; stringArrayList.toArray(stringA) System.out.println(stringA[0]);