title: How to get the full fraction value of a division result in java?
body: <p>I am new to Java and I am using DrJava IDE for my testing. I have the following division 49700/40000 and it displays 1.0 instead of 1.2425. </p>
  
  <blockquote>
  <pre><code> double t = 49700/40000;
   System.out.println(t);
  </code></pre>
  </blockquote>
  
  <p>Is it something I am doing wrong?</p>