Convert String into List
<p>I have List which I use to convert into String:</p>

<pre><code>    private String convertList(List&lt;String&gt; list)
    {
        String listString = "";

        for (String s : list)
        {
            listString += s + ",";
        }
        return listString;
    }
</code></pre>

<p>But I also want to implement the same operation backwards. I want to generate List from String using <code>,</code> as delimiter. How this can be implemented?</p>