Passing an ArrayList report shows comma every item
<p>I'm passing an List of String to JasperReports report via parameter.</p>

<pre><code>String jasperFileName = "C:\\TestReportProcess.jasper";
Map&lt;String, Object&gt; params = new HashMap&lt;String, Object&gt;();
params.put("List", getMyListOfString());
JasperPrint jprint = (JasperPrint) asperFillManager.fillReport(jasperFileName, params, new JREmptyDataSource());
</code></pre>

<p>when report starting it shows comma every item</p>

<pre><code>item 1,
item 2,
item 3,
item 4,
etc etc 
</code></pre>

<p>How can avoid it?</p>

<p>My jasper report xml</p>

<pre><code>        &lt;parameter name="List" class="java.util.ArrayList" isForPrompting="false"/&gt;
        &lt;detail&gt;
            &lt;band height="280" splitType="Stretch"&gt;
                &lt;textField isStretchWithOverflow="true" pattern=""&gt;
                    &lt;reportElement x="0" y="13" width="550" height="45" uuid="f907894e-e9f1-418b-9ab8-1db276b8482e"/&gt;
                    &lt;textElement&gt;
                        &lt;font fontName="Antique Olive Compact"/&gt;
                    &lt;/textElement&gt;
                    &lt;textFieldExpression&gt;&lt;![CDATA[$P{List}]]&gt;&lt;/textFieldExpression&gt;
                &lt;/textField&gt;
            &lt;/band&gt;
        &lt;/detail&gt;
    &lt;/jasperReport&gt;
</code></pre>

<p>This is my simple xml report, there is just a parameter as java.util.Arraylist</p>