Addition in Java?
<p>This is what I'm trying to do:</p>

<pre><code>double speed = distance / time;
double ex1 = (random - 40) * time;
double finalAmount = speed + ex1;
</code></pre>

<p>speed, distance etc are all assigned a value</p>

<p>For some reason I'm getting incorrect answers</p>
