title: I want to add a statement. I tried parsing it, java parser exception is thrown. How to overcome it?
body: <p>I need to insert a statement as</p>
  
  <pre><code>int listSize = list.size();
  </code></pre>
  
  <p>So, I tried inserting that statement as</p>
  
  <pre><code>Statement sampleStatement = JavaParser.statement ("int listSize = list.size();");
  </code></pre>
  
  <p>Java parser exception is thrown.</p>
  
  <p>​</p>
  
  <p>P.s: I'm using java parser core 2.4.0</p>