title: Formatting 2 decimal places in java
body: <p>here's my example:</p>
  
  <pre><code>double num = 0;
  
  num = 4/3;
  
  
  System.out.println(num);
  </code></pre>
  
  <p>And my output is 1.0 instead of 1.3</p>
  
  <p>Any suggestions?</p>