How do I cast a double to an int in Java?
<p>I'm looking at <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html" rel="nofollow">http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html</a></p>

<p>I am trying</p>

<pre><code>    double b = Math.sqrt(absoluteNumber);
    int c = b.intValue();
</code></pre>

<p>but I am getting this error:</p>

<pre><code>Factorise.java:13: error: double cannot be dereferenced
int c = b.intValue();
</code></pre>

<p>Help please?</p>
