title: Java: ConcurrentHashMap
body: <p>What is the correct thread safe collection to map an integer and a string in Java?
  Is ConcurrentHashMap the right way to go?</p>
  
  <pre><code>private volatile ConcurrentHashMap&lt;int, bool&gt; chm;
  </code></pre>
  
  <p>What is wrong with the above declaration. Eclipse says "Syntax error on token "int", Dimensions expected after this token"</p>