ArrayList list=new ArrayList<>();
list.add("A");
list.add("B");
list.add("C");
list.add("D");
String[] stringArr=TextUtils.join(",",list).split(",");
ArrayList list=new ArrayList<>();
list.add("A");
list.add("B");
list.add("C");
list.add("D");
String[] stringArr=TextUtils.join(",",list).split(",");
For further actions, you may consider blocking this person and/or reporting abuse
Harsh -
stacks gather -
Dl -
Tristan Elliott -
Top comments (1)
Isn't it more performant to use the buildin method
toArray()
. So the code would be: