title: Problem using if statement with ArrayList
body: <p>I am using an if statement as shown below,</p>
  
  <pre><code>if(sign.size()==0)
  </code></pre>
  
  <p>Here <code>sign</code> is of the type <code>ArrayList&lt;Character&gt;</code>  </p>
  
  <p>I am trying to add a <code>char</code> to the <code>ArrayList</code></p>
  
  <p>But its not working. Is there anything wrong with my if statement?</p>
  
  <p>I also tried the same with an <code>ArrayList&lt;doubler&gt;</code>, this time I could get into the if statement.  </p>
  
  <p>Is there anything wrong with the if statement?</p>