title: How to divide down to decimals and not get zero in Java?
body: <pre><code>double[] arrayName = new double[10]; 
  arrayName[0] = (14/49)*100;
  </code></pre>
  
  <p>Trying to get percentage of two numbers, 14 / 49, and add results to an array. All it returns is 0.0. Same thing if I use float instead of double. New to Java.</p>