java : How to assign custom values to char
<pre><code> char c = formbean.getOptionType().value().charAt(0)
</code></pre>

<p>Hi , the above line either returns 'P' or 'C' .
So the value of char c would be either 'P' Or 'C' .</p>

<p>Now , my question is , instead of assigning 'P' Or 'C' values , i want to assign 0 or 1 respectively .</p>

<p>( For example if the value is 'P' , i need to assign it 0 and if the value is 'C' i need to assign it to 1 ).</p>
