title: HashMap in Java Not Working
body: <p>This is currently my second day coding in Java, no worries though I am not new to coding. Anyhow, I am not use to not having dictionaries like Python has, which can store a <code>Key</code> and <code>Value</code>.</p>
  
  <p>That is when I came upon Java HashMaps. Currently, I can not seem to get them to work, and I am unsure why. Here is the code I am using, but these seems to be raising errors:</p>
  
  <pre><code> Map&lt;String, String&gt; visual = new HashMap&lt;String, String&gt;();
  </code></pre>
  
  <p>Then here is the error it is generating:</p>
  
  <pre><code>Multiple markers at this line
      - The type Map is not generic; it cannot be parameterized with arguments &lt;String, String&gt;
      - HashMap cannot be resolved to a type
  </code></pre>
  
  <p>I am even importing the Hash libraries:</p>
  
  <pre><code>import java.util.Map;
  import java.util.HashMap;
  </code></pre>
  
  <p><strong>So simply my question is, why is the HashMap not working? Thank you! :)</strong></p>
  
  <hr>
  
  <p><em>P.S. Here is my little piece of code:</em></p>
  
  <pre><code>public Map areaTotal() {
      Map&lt;String, String&gt; visual = new HashMap&lt;String, String&gt;();
      return visual;
  }
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>Sorry, I guess I did forget to include some other information.</p>
  
  <ul>
  <li>Using Eclipse</li>
  <li>Only other import is Math</li>
  </ul>