I have arraylist “myorderdata“. I want to retrieve this arraylist to one String variable and want “,” separator between each value retrieve from array list .
I have tried to do this with
String[] y = myorderdata.toArray(new String[0]); but this doesn’t work .
Can anyone help me ?
Thanks in advance .
1 Answer