title: Type HashMap does not take parameters
body: <p>I was following <a href="https://www.youtube.com/watch?v=J-klDVEtwkM" rel="nofollow noreferrer">this video</a> about HashMap in java. it has <a href="http://www.itcuties.com/java/hashmap-example/" rel="nofollow noreferrer">below code</a>.</p>
  
  <pre><code>// Create the HashMap
  HashMap&lt;String,String&gt; hm = new HashMap&lt;String, String&gt;();
  
  // Put data
  hm.put("Katie", "Android, WordPress");
  hm.put("Magda", "Facebook");
  hm.put("Vanessa", "Tools");
  hm.put("Ania", "Java");
  hm.put("Ania", "JEE");    // !! Put another data under the same key, old value is overridden
  
  // HashMap iteration
  for (String key: hm.keySet())
      System.out.println(key+":"+hm.get(key));
  </code></pre>
  
  <p>so I wrote my below code, using it to practice HashMap (almost same code)</p>
  
  <pre><code>package hashmap;
  import java.util.*;
  
  public class HashMap {
  
      public static void main(String[] args) {
  
          HashMap&lt;String,String&gt; hm = new HashMap&lt;String, String&gt;();
  
          hm.put("Katie", "Android, WordPress");
          hm.put("Magda", "Facebook");
          hm.put("Vanessa", "Tools");
          hm.put("Ania", "Java");
          hm.put("Ania", "JEE");   
  
      }
  }
  </code></pre>
  
  <p>But the class didn't compile give error "<strong><em>Type HashMap does not take parameters</em></strong>" So I searched for answers where I <a href="https://stackoverflow.com/questions/21977204/creating-a-map-in-java-parameter-error">got this</a></p>
  
  <p>one of answers says </p>
  
  <blockquote>
    <p>Two possible mistakes:</p>
    
    <p>You are using JDK 1.4</p>
    
    <p>You imported something else than java.util.Map</p>
  </blockquote>
  
  <p>So I imported <code>java.util.Map</code> but netbeans gives that error and say the import has not used. Then I <code>java.util.*;</code> but result was same. I don't know if this is novice mistake of my IDE fault. </p>
  
  <p>My jdk 1.8 and Netbeans 8.0.2 in windows 8.1</p>