title: Possible loss of precision / [type] cannot be dereferenced
body: <p>I have been looking around a lot but i simply can't find a nice solution to this...</p>
  
  <pre><code>Point mouse = MouseInfo.getPointerInfo().getLocation();
  
  int dx = (BULLET_SPEED*Math.abs(x - mouse.getX()))/
                      (Math.abs(y - mouse.getY()) + Math.abs(x - mouse.getX()))*
                      (x - mouse.getX())/Math.abs(x - mouse.getX());
  </code></pre>
  
  <p>In this constellation i get: Possible loss of precision, when i change e.g <code>(x - mouse.getX())</code> to <code>(x - mouse.getX()).doubleValue()</code> it says double cannot be dereferenced, when i add intValue() somewhere it says int cannot be dereferenced. What's my mistake?</p>
  
  <p>[x, y are integers | BULLET_SPEED is a <code>static final int</code>] </p>
  
  <p>Thanks!</p>