title: How to add keys and values to a Hashmap while getting 'cannot resolve put symbol' error
body: <p>I am working with <a href="https://en.wikipedia.org/wiki/Android_Studio" rel="nofollow noreferrer">Android Studio</a> 1.4.1. I had just created a Hashmap and was following a tutorial (in Java) on how to populate and manipulate it.</p>
  <p>However, I get a 'cannot resolve symbol put' error and the &quot;put&quot; command is in red.</p>
  <p>The image I added shows the auto complete snapshot and although <em>java.util.HashMap</em> is imported, there isn't any &quot;put&quot; command that is available in autocomplete. The available commands also are showing in red. I tried to use them instead of the &quot;put&quot; command. I keep having this type of problem all along. How can I fix it?</p>
  <p><a href="https://i.stack.imgur.com/H60L1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H60L1.png" alt="Image" /></a></p>
  <pre><code>import java.util.HashMap;
  
  HashMap&lt;String, String&gt; pozisyon = new HashMap&lt;String, String&gt;();
  pozisyon.put(&quot;SKale&quot;, &quot;a8&quot;);
  </code></pre>