Convert ArrayList<String>() To Stirng[] Array in Android

sandeepkamboj12

Sandeep kamboj

Posted on July 11, 2018

Convert ArrayList<String>() To Stirng[] Array in Android

ArrayList list=new ArrayList<>();
list.add("A");
list.add("B");
list.add("C");
list.add("D");

String[] stringArr=TextUtils.join(",",list).split(",");

💖 💪 🙅 🚩
sandeepkamboj12
Sandeep kamboj

Posted on July 11, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related