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
CharlieTap -
Ronika Kashyap -
M. Saad Ullah -
Suyash Vashishtha -
Top comments (1)
Isn't it more performant to use the buildin method
toArray()
. So the code would be: