Java Division error
<p>I have the following variables:</p>

<pre><code>int first = 0;
int end = 0;
</code></pre>

<p>Declare in the public class. </p>

<p>Within a method:</p>

<pre><code>double diff = end / first;
double finaldiff = 1 - diff;
</code></pre>

<p>The <code>end</code> variable on <code>System.out.println</code> is <code>527</code>, the <code>first</code> is <code>480</code>.</p>

<p>Why is the answer for diff coming out as <code>1</code>? It should be <code>1.097916667</code>, I thought using a <code>double</code> would enable me to calculate into decimals?</p>
