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
String[] array = new String[items2.size()]; items2.toArray(array);