How to convert from object to String?
<p>How to convert arraylist selectitem  to string.I am getting as object.Please help me...</p>

<pre><code>List&lt;SelectItem&gt; DtlLst = new ArrayList&lt;SelectItem&gt;();
DtlLst.add(new SelectItem(DtlVO.getTrnId(),
                    DtlVO.getTrnId()));
---
---
String number =new String(DtlLst.get(0).toString());
                            System.out.println("number"+number.toString()); 
</code></pre>

<p>I  am getting as object.How to get this list first value ?</p>
