Populating ArrayAdapter - type String[]
<p>I'm new to Java and Android development and i'm stucked while trying to populate an ArrayAdapter to creating a ListView. The code below works perfectly:</p>

<pre><code>        String name[] = {"a","b","c",
            "d","e"};
        this.setListAdapter(new ArrayAdapter&lt;String&gt;(this,
                R.layout.row, R.id.label,
                name));
</code></pre>

<p>But I simply can't figure out how I should populate <code>name</code> with a <code>for</code> loop. All suggestions are welcome.</p>
