Printing a comma (,) after each item in an array
<p>Lets say I have an array (or list) of items</p>

<pre><code>A[] = [a,b,c,d,e]
</code></pre>

<p>If I want to print them out so each item is separated by a comma (or any other delimiter), I generally have to do this:</p>

<pre><code>for(int i=0; i &lt; A.Count; i++)
{
    Console.Write(A[i]);

    if (i != A.Count-1)
        Console.Write(",");
}
</code></pre>

<p>So, my output looks like:</p>

<pre><code>a,b,c,d,e
</code></pre>

<p>Is there a better or neater way to achieve this?</p>

<p>I like to use a foreach loop, but that prints a comma after the last element as well, which is undesirable.</p>
