How to test for am or pm?
<p>I am trying to test for am or pm in a if else statement..</p>

<pre><code>if(am){
//Do something
else{

//Do something else
</code></pre>

<p>Ive tried </p>

<pre><code>int am = cld.get(Calendar.AM_PM);
</code></pre>

<p>but the if else </p>

<p>wont take it as a parameter to test. Maybe because its not boolean.</p>

<p>How would i go about testing this?</p>
