title: double and Integer conversion
body: <p>I am trying to figure this out:</p>
  
  <pre><code>double chiSquare = ((double)(hashtable.get(key).intValue()/noWords))/* * Math.log10((NO_DOCUMENTS/all.get(key)))*/;
  if (key.equals("love")){
      System.out.println(hashtable.get(key));
      System.out.println(all.get(key));                
      System.out.println(noWords);    
      System.out.println(chiSquare);
      System.out.println((double)1/841);
      System.exit(0);
  }
  </code></pre>
  
  <p>Why is it printing chiSquare, prints a zero, while printing 1/841 gives the double value?
  The hashtable is of <code>&lt;String, Integer&gt;</code></p>