ArrayList Into String
<p>I have a <code>Activity</code> that pulls an <code>Array</code> from the previous <code>Activity</code>. I can use this code below which gets the <code>Array</code> from the previous <code>Activity</code> and puts it into a <code>TextView</code>.</p>

<p><strong>Update using <code>initWheel(R.id.passw_1, names.toArray(new String[names.size()]));</code> fixed the problem</strong></p>

<pre><code>ArrayList&lt;String&gt; names = intent.getStringArrayListExtra("KEY");

    TextView et2 = (TextView) findViewById(R.id.editText2);
    et2.setText("");
    if (names.size() &gt; 0) {
        for (String str : names) {
            et2.append(str + "    ");
        }
    }
</code></pre>

<p>This works fine but is not what I need exactly. Instead of it populating a <code>TextView</code> I need it to fill a <code>String</code> which is like this </p>

<p><code>initWheel(R.id.passw_1, "ArrayList Here");</code></p>

<p>I have another which will be set by default in the code that looks like this and I need the array to populate the one above in the same format:</p>

<p><code>initWheel(R.id.passw_2, new String[] { "Foo", "Bar" });</code></p>
