Java : is it possible to get only the first characer of the string
<p>I have a for loop inside java .    </p>

<pre><code>for (Legform ld : data)
     {
    System.out.println(ld.getSymbol());
    }
</code></pre>

<p><strong>The output of the above for loop is</strong> </p>

<p>Pad</p>

<p>CaD</p>

<p>CaD</p>

<p>CaD</p>

<p>Now my question is it possible to get only the first characer of the string instead of thw whole thing Pad or CaD</p>

<p>For example if its Pad i need only the first letter , that id P
For example if its CaD i need only the first letter , that id C</p>

<p>Is this possible ??</p>
