title: Why <> operator is not allowed for source below 1.7?
body: <p>in a java program , I have the following line of code : </p>
  
  <pre><code>HashMap&lt;String, String&gt; query_args = new HashMap&lt;&gt;();
  </code></pre>
  
  <p>and i receive the following error:</p>
  
  <p>'&lt;>' operator is not allowed for source level below 1.7</p>
  
  <p>I tried to change the project compliance and jre to 1.7 but then eclipse could not resolve the imports. I am using jre 1.6. </p>
  
  <p>Any suggestions? </p>