read ArrayList with index
<p>I've a class wich returns an array list, but when i'm reading it i want to write the values in a page.</p>

<p><strong>i've this class:</strong></p>

<pre><code>        public ArrayList users(string table)
        {
            ArrayList list = new ArrayList();
            foreach (DataRow item in com.Execute("select * from " + table + ";").Rows)
            {
                list.Add(item["id"].ToString());
                list.Add(item["mail"].ToString());
                list.Add(item["data"].ToString());
            }

            return list;
        }
</code></pre>

<p><strong>Page_Load</strong></p>

<pre><code>loadUsersNewsletter lun = new loadUsersNewsletter();
String[] myArr = (String[])lun.users("newsletter").ToArray(typeof(string));
foreach (Object o in myArr)
{
    load.Controls.Add(new LiteralControl("&lt;tr&gt;&lt;td&gt;" + o + "&lt;/td&gt;&lt;td&gt;" + o + "&lt;/td&gt;&lt;/tr&gt;"));
    ...
}
</code></pre>

<p>how can i read the values by index, or another way, in order to don't repeat values.
If there is another solution for this please tell me.</p>
