How to store the values dynamically in string in java android?
<p>In my project I need to store the values dynamically in a string and need to split that string with ",". How can I do that ? Please help me..</p>

<p>My Code:</p>

<pre><code>static ArrayList&lt;ArrayList&lt;String&gt;&gt; listhere;
ArrayList&lt;String&gt; arropids;
String arropids1; 


    for(int q=0;q&lt;listhere.size();q++)
                {
                  arropids = listhere.get(q);

                  if(arropids.get(3).equals("1"))
                  {
                      arropids1 += arropids.get(0) + ","; 


                  System.out.println("arropids1"+arropids1);

                }
                } 
</code></pre>
