I want to convert this ArrayList into a String array in the form {“ann”,”john”}. You could make an array the same size as the ArrayList and then make an iterated for loop to index the items and insert them into the array. In the above code, we have taken name and record number as Edit text, when user click on save button it will store the data into arraylist. I know im very late to answer this. Here we are sharing three different ways to convert an Array to ArrayList. Posted by: admin Step 3 − Add the following code to src/MainActivity.java, Let's try to run your application. ... Let us have a Detailed discussion of code and how to modify the arguments in order to use our custom array adapter:- @suriv: the only problem was List instead of ArrayList but the answer is not wrong. Converting JSONarray to ArrayList I am downloading a JSON string and converting it to JSONArray. Ask Question Asked 9 years, 2 months ago. How to insert element to arraylist for listview in Android? Step 2 − Add the following code to res/layout/activity_main.xml. jquery – Scroll child div edge to parent div edge, javascript – Problem in getting a return value from an ajax script, Combining two form values in a loop using jquery, jquery – Get id of element in Isotope filtered items, javascript – How can I get the background image URL in Jquery and then replace the non URL parts of the string, jquery – Angular 8 click is working as javascript onload function.