title: Using int as a type parameter for java.util.Dictionary
body: <p>When I try to declare a Dictionary as such:</p>
  
  <pre><code>private Dictionary&lt;String, int&gt; map;
  </code></pre>
  
  <p>The compiler gives me the following error:</p>
  
  <blockquote>
    <p>Syntax error on token "int", Dimensions expected after this token</p>
  </blockquote>
  
  <p>But it works fine with <code>Integer</code>. I'm vaguely aware that Java treats <code>int</code> / <code>Integer</code> differently (I come from a .NET background), but I was hoping someone could give me a full explanation on why I can't use primitives in a Dictionary&lt;></p>