title: Cannot find Decimal Format class in Java
body: <p>I cant get this code to work... I don't know why. </p>
  
  <p>It is the same code as in this tutorial <a href="http://www.youtube.com/watch?v=meKpmuUI0ds&amp;feature=related" rel="nofollow">http://www.youtube.com/watch?v=meKpmuUI0ds&amp;feature=related</a>. </p>
  
  <p>The code works when this guy does it, but I get these 2 errors:</p>
  
  <blockquote>
    <p>Test.java:4: cannot fin symbol    symbol: class decimalFormat </p>
    
    <p>location: class Test</p>
  
  <pre><code>decimalFormat decFor = new decimalFormat("0.00");
  </code></pre>
    
    <p>^</p>
    
    <p>Test.java:4: cannot find symbol</p>
    
    <p>symbol: class decimalFormat</p>
    
    <p>location: class Test</p>
  
  <pre><code>decimalFormat decFor = new decimalFormat("0.00");
  
                         ^
  </code></pre>
    
    <p>2 errors.</p>
  </blockquote>
  
  <p><strong>Here's my code</strong>:</p>
  
  <pre><code>public class Test {
  
      public static void main(String[] args) {
  
          decimalFormat decFor = new decimalFormat("0.00");
          double money = 15.9;
          double mula = 36.6789;
          double product = money * mula;
  
          System.out.println(decFor.format(product));
      }
  }
  </code></pre>